How do I copy a Librarian Master file member to a sequential file that is not defined yet using the LIBGET command?

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

Question:

How do I copy a Librarian Master file member to a sequential file that is not defined yet using the LIBTSO LIBGET command? 

 

Answer:

Using the JCL below will allocate the sequential file and will copy the member to it from a master file. You will need to specify the password on the member on the master file:

//ALLOC    EXEC PGM=IEFBR14                                          
//DD       DD   DISP=(,CATLG),DSN=your.seq.file,UNIT=SYSDA,       
//  DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120),SPACE=(800,(1050,140))      
//LIBGET   EXEC PGM=IKJEFT01,DYNAMNBR=25,REGION=1024K                
//SYSTSIN  DD  *                                                     
 LIBGET ARC DSSOURCE('your.master.file') TSODSN('your.seq.file') +
 PASSWORD(PXFV)                                                      
/*                                                                   
//SYSTSPRT  DD  SYSOUT=*                                             
//SYSPRINT  DD  SYSOUT=*