BC1PNCPY functionalities

Document ID : KB000009543
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

The BC1PNCPY utility allows you to copy between any Endevor supported library types, while preserving the original footprint of copied members.

Background:

Sometimes you could need to exclude some members from the copy.

This document explain you how to code BC1PNCPY SYSIN to achieve that.

Environment:
z/OS
Instructions:

You can use BC1PNCPY utility to copy all or selected members of an existing base, delta, or listing library from a PDS or PDS/E to an ELIB or vice versa.

Below are some cases of usage:

  1. When you want to copy all elements, you have to code the SYSIN with keywords as follows:
    COPY INPUT  DDNAME = SRCFILE     OUTPUT DDNAME = TGTFILE            UPDATE IF PRESENT.
    This command will copy all members.

  2. When you want to copy selected elements only, you have to code the SYSIN with keywords as follows:
    COPY INPUT  DDNAME = SRCFILE     OUTPUT DDNAME = TGTFILE            UPDATE IF PRESENT            MEMBER E0000010              THRU E0000015            MEMBER E0000019              THRU E0000020            MEMBER E0000035.
    This command will copy members E0000010 to 0000015, members E0000019, E0000020 and E0000035. For example, E0000016 will be jumped (if it exists).
  3. When you want to copy all elements but exclude some elements, you have to code the SYSIN with keywords as follows:
    COPY INPUT  DDNAME = SRCFILE     OUTPUT DDNAME = TGTFILE            UPDATE IF PRESENT            EXCLUDE            MEMBER E0000010              THRU E0000015            MEMBER E0000019              THRU E0000020            MEMBER E0000035.
    This command will copy all members except members E0000010 to 0000015, members E0000019, E0000020 and E0000035.

 

Additional Information:

A Sample JCL to execute the BC1PNCPY ELIB utility is provided with the CA Endevor installation files as member BC1JNCPY in the installation CSIQJCL library.

For further information on the BC1PNCPY utility, see the CA Endevor Guide at chapter "BC1PNCPY Utility".