Copy Select Members to a PDS

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

Summary

Need to copy select members from a CA-Panvalet panlib to a PDS.
All imbedded ++INCLUDE statements must also be expanded within each member.

Instructions

The following sample execution of PAN#1 would copy 3 members. 

 Column 72 entries are important:

On the ++OPTION
0(zero) - generates output to a single PDS member.
1 - incorporates output generated by level 2 and above nested INCLUDEs into the PDS member generated by the level 1 INCLUDE instead of creating separate PDS members.
blank - causes a new member to be written to the PDS.

On the ++WRITE
E - expand ++INCLUDEs, independent of the Panvalet installation option specified.
N - do not expand ++INCLUDEs, independent of the Panvalet installation option specified.
blank - expands ++INCLUDES according to the installation options.

//STEP1  EXEC  PGM=PAN#1                                              
//PANDD1   DD  DSN=your.panvalet.panlib,DISP=SHR                          
//PDSOUT   DD  DSN=your.pds,DISP=SHR                            
//SYSPRINT DD  SYSOUT=*                                                
//SYSPUNCH DD  SYSOUT=*                                                
//SYSIN    DD  *                                                        
++OPTION OUTPUT,PDSOUT,COPY2PDS                                        
++WRITE WORK,COPY2PDS                                                  E
++OPTION OUTPUT,PDSOUT,COPYTEST                                        
++WRITE WORK,COPYTEST                                                  E
++OPTION OUTPUT,PDSOUT,COPYTST2                                        
++WRITE WORK,COPYTST2                                                  E
/*

Each member being written much have a separate ++OPTION OUTPUT statement.

For complete discussion, please see Chapter 4 of the Panvalet User Guide.