Adding more than one member

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

Description:

How can I add more than one member at a time to my Panvalet library from my PDS?

Solution:

The ++ADD function does not have the capability to add a range of members, however you can use the PAN0 to add all members to your Panvalet library from a PDS. You can create a new PDS with only the members you want to add to your library and then execute the PAN0 program. Sample JCL below:

 //STEP1       EXEC PGM=PAN#1
 //PANDD1      DD DSN=YOUR.PANVALET.PANLIB,DISP=SHR
 //PANDD2      DD DUMMY
 //PANDD3      DD DUMMY
 //INBPAM      DD DSN=YOUR.INPUT.PDS,DISP=SHR
 //INBSAM      DD DSN=YOUR.INPUT.PDS,DISP=SHR
 //SYSPRINT    DD SYSOUT=*
 //SYSIN       DD *
 ++USING PAN0
 ++ADD *,COBOL
 //