Copy a Librarian Master file member to a sequential file that is not defined yet
search cancel

Copy a Librarian Master file member to a sequential file that is not defined yet

book

Article ID: 26793

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

 

Is there a way to copy a Librarian Master file member to a sequential files that is not defined yet using the LIBTSO LIBGET command

 

Resolution

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=*