How to copy all members of a Librarian Master file to a PDS. Can all archive levels be copied at the same time?
search cancel

How to copy all members of a Librarian Master file to a PDS. Can all archive levels be copied at the same time?

book

Article ID: 55779

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Need to copy all the members in a Librarian Master file along with all the archive levels to a PDS 

Environment

Release:  4.4
 

Resolution

See Copying Members to a PDS for instructions and sample JCL to copy members to a PDS.

//LIBRSTP1 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'   
//SYSPRINT DD  SYSOUT=*                                    
//MASTER   DD  DISP=SHR,DSN=hlq.mlq.your.MASTER
//OSJOB    DD  DSN=hlq.mlq.LIBR.OSJOB,            
//         DISP=(NEW,CATLG,DELETE),                        
//         SPACE=(CLY,(10,1),RLSE),                      
//         DCB=(RECFM=FB,LRECL=80,BLKSIZE=80),             
//         VOL=SER=(vvvvvv)                              
//SYSIN    DD  *                                           
-OPT GPO                                                   
-SEL NAME=,EXEC(R),TEMP,NOCHK    
-END                                                       
/*                                                         
/* --------------------------------------------------------
//LIBRSTP2 EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'               
//SYSPRINT DD  SYSOUT=*                                    
//INDEX    DD  SYSOUT=*                                    
//LIST     DD  SYSOUT=*                       
//OSJOB    DD  DISP=SHR,DSN=hlq.mlq.THEPDS.or.PDSE     
//MASTER   DD  DISP=SHR,DSN=hlq.mlq.your.MASTER  
//SYSIN    DD DISP=SHR,DSN=hlq.mlq.LIBR.OSJOB    
/*                                                         

 

It is not possible to copy all archive levels to a PDS at the same time. This must be done on an individual basis, while either renaming each output member or copying each level to a different PDS to avoid member name duplication.