How to copy all the members from a PDS to a Panvalet panlib specifying a language of DATA?

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

Description:

I have a PDS that has over 400 members and I need to copy them into a Panvalet panlib. I need to add these with a language of DATA.

Solution:

The members cannot be already on the panlib. Using Panvalet Extended Feature ++USING PAN0 this reads the PDS directory and adds all the members.

//STEP1 EXEC PGM=PAN#1 
 //PANDD1    DD DSN=your.panvalet.panlib,DISP=SHR 
 //INBPAM     DD DSN=your.pds.file,DISP=SHR 
 //INBSAM     DD DSN=your.pds.file,DISP=SHR
 //SYSPRINT  DD SYSOUT=* 
 //SYSIN       DD * 
 ++USING PAN0
 ++ADD *,DATA,LIST