For GDGs residing on DASD, the recommended procedure would be to use the IBM JCL (+1) method of creating and cataloging new generation datasets. For GDGs residing on tape, using the the IBM JCL (+1) method of creating and cataloging new generation datasets would avoid the use of CNS local utilities and make the JCL more transportable. The ROTATE program was written by CNS because the IBM JCL required to create new generations of a dataset and keep the datasets cataloged to the same set of tapes was somewhat more difficult to code. Example using PGM=ROTATE to catalog a new tape generation dataset: // EXEC PGM=ROTATE,PARM='your.gdg(-n)'
Example using IBM JCL to catalog a new tape generation dataset: //GDGREF DD DSN=your.gdg(-n),DISP=OLD,UNIT=(,,DEFER)
//outdd DD DSN=your.gdg(+1),DISP=(NEW,CATLG),
// UNIT=AFF=GDGREF,VOL=REF=*.GDGREF,
// LABEL=(fn,SL),
// DCB=model.dscb -or- DCB=(MODEL,RECFM=rfm,LRECL=n,BLKSIZE=n) The ROTATE program also includes support for multivolume generation datasets. Using IBM JCL, there is no way to catalog a new generation of a tape dataset to multiple tape volumes using the
VOL=REF= JCL keywords. I hope this is helpful to you. (cmm/tlvh) |