How to Copy a Dataset into Another Using IEBGENER

IBM utility IEBGENER can be used to copy the content of one dataset into another via batch. The basic JCL for this effect is as follows: //COPYFILE EXEC PGM=IEBGENER //SYSPRINT DD SYSOUT=* //SYSUT1 DD DSN=input_dataset,DISP=SHR //SYSUT2 DD DSN=output_dataset,DISP=(,CATLG), // VOL=SER=volser, // SPACE=(CYL,(xx,yy),RLSE) //SYSIN DD DUMMY //SYSUDUMP DD SYSOUT=* //* You […]