Copy members from one library to another library.

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

Description:

How do I copy members from one Panvalet library to another Panvlalet library?

Solution:

The PAN#2 ++TRANSFER command will copy members from one PANLIB to another PANLIB.

The original member is not delete and remains in the original PANLIB.

The JCL below shows how to copy just one member, range of members, or all members.

//STEP1    EXEC PGM=PAN#2
//SYSPRINT DD  SYSOUT=*
//SYSUDUMP DD  SYSOUT=*
//PANDD1   DD  DISP=SHR,DSN=YOUR.PANVALET.PANLIB.FROM
//PANDD2   DD  DISP=SHR,DSN=YOUR.PANVALET.PANLIB.TO
//SYSIN    DD  *
++OPTION OUTPUT
++TRANSFER TEST  <= COPIES ONLY ONE MEMBER
//
++TRANSFER TEST,TEST5   <= COPIES THE RANGE OF MEMBERS FROM TEST TO TEST5
++TRANSFER 1STMEMBER NAME,Z9999999 <= COPIES ALL MEMBERS