Do you have JCL instructions on how to backup a Panvalet PANLIB to disk?

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

Do you have JCL instructions on how to backup a Panvalet PANLIB to disk?

Answer:

Use the following JCL example to backup a PANVALET PANLIB to disk using PAN#2 

//JOBCARD JOB XXXXXXXXX,'PROGRAMMER',                                  
//         MSGCLASS=X,CLASS=X                                           
/*NOTIFY      USERID
/******************************************************************     
//* THE PAN#2 ++DUMP COMMAND PRODUCES A PROTECTION FILE THAT      *
//* CONTAINS ALL STORED MEMBERS ON A CA-PANVALET LIBRARY.         *    
//* THIS SAMPLE JCL USES PAN#2 TO BACKUP ALL MEMBER ON PANLIB     *    
//* 'YOUR.PANVALET.PANLIB' TO AN OUTPUT PROTECTION FILE ON DISK.  *    
//*****************************************************************    
//STEP1       EXEC PGM=PAN#2                                            
//PANDD1      DD DSN=YOUR.PANVALET.PANLIB,DISP=SHR                     
//PANDD3      DD DUMMY                                                 
//PANDD2      DD DSN=YOUR.PANVALET.PANLIB.BKUP,                      
//            DISP=(,CATLG,DELETE),                                     
//            SPACE=(CYL,(pp,ss)),UNIT=SYSDA,                           
//            RECFM=U,LRECL=0,BLKSIZE=31752,DSORG=PS                    
//SYSPRINT    DD SYSOUT=*                                               
//SYSPUNCH    DD SYSOUT=*           
//SYSIN       DD *                                                      
++DUMP                                                                  
//