CA TPX Session Management for z/OS

Tech Tips: How to copy members from a Librarian Master File to a PDS. 

09-09-2015 02:20 PM

You can copy selected members or all members from a Librarian Master File to a PDS.

Example below:

//**********************************************************************************************************************

   THIS SAMPLE JCL WILL USE THE GROUP PROCESSING OPTION TO COPY MEMBERS FROM A MASTER FILE TO A PDS (MVS ONLY)                        

   USE -SEL NAME=/TEST,S/,EXEC(R) FOR SELECTED MEMBERS THAT START WITH TEST                                                                               

   USE -SEL NAME=,EXEC(R) FOR ALL MEMBERS                                         

//**********************************************************************************************************************

//STEP1         EXEC PGM=AFOLIBR,PARM='NJTA,NRJS'

//SYSPRINT      DD SYSOUT=*

//MASTER        DD DSN=YOUR.LIBRARIAN.MASTERFILE,DISP=SHR

//OSJOB          DD DSN=&&GPO,DISP=(,PASS),UNIT=SYSDA,

//       SPACE=(CYL,(1,1)),DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)

//SYSIN  DD  *

-OPT GPO

-SEL NAME=/TEST,S/,EXEC(R)

-END

//STEP2         EXEC PGM=AFOLIBR,PARM='NJTA,NRJS'

//SYSPRINT      DD SYSOUT=*

//MASTER        DD DSN=YOUR.LIBRARIAN.MASTERFILE,DISP=SHR

//OSJOB          DD DSN=YOUR.PDS.FILE,DISP=OLD

//SYSIN           DD DSN=&&GPO,DISP=(OLD,PASS)

//

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.