How do you duplicate data set in JCL

Showing Answers 1 - 4 of 4 Answers

There are many ways, here's one - Allocate the duplicate DSN using BR14 and the LIKE parameter. Then GENER the existing dataset to the new dataset.You can also use IDCAMS to do this using REPRO instead of GENER.kk

  Was this answer useful?  Yes

IDCAMS REPRO with LIKE
//STEP01   EXEC PGM=IDCAMS          
//SYSPRINT DD   SYSOUT=*                        
//INFILE   DD   DSN=DATASET.OLD,                
//             DISP=(SHR,KEEP,KEEP)             
//OUTFILE  DD   DSN=DATASET.NEW,                
//             LIKE=DATASET.OLD,                
//             DISP=(NEW,CATLG,DELETE),UNIT=3390,
//             SPACE=(CYL,50)                   
//SYSIN DD *                                    
  REPRO INFILE(INFILE) OUTFILE(OUTFILE)         

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions