The BC1PNCPY utility allows a copy between any Endevor supported library types, while preserving the original footprint of copied members. Sometimes there is a need to exclude some members from the copy.
This document explain how to code BC1PNCPY SYSIN to achieve that.
The BC1PNCPY utility can be used 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:
To copy all elements, code the SYSIN with keywords as follows:
COPY INPUT DDNAME = SRCFILE
OUTPUT DDNAME = TGTFILE
UPDATE IF PRESENT.
This command will copy all members.
To copy selected elements only, 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).
To copy all elements but exclude some elements, 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.
A Sample JCL to execute the BC1PNCPY ELIB utility is provided with the Endevor installation files as member BC1JNCPY in the installation CSIQJCL library.
Click here for more information on the "BC1PNCPY Utility".