CNS DOCWEB Home
CNS Home Page
CNS Publications Page
Search All CNS Docs

DOCWEB Logo

The CNS FAQ File

Best Procedures for Using GDGs to Create New Datasets

CNS Document ID: Q1288
Last Updated: 06/11/2001

Best Procedures for Using GDGs to Create New Datasets

Q:

A question has arisen on the pros and cons of certain procedures we perform pertaining to the usage of GDGs. In some of our procedures, we use a ROTATE step to increment the next volume when creating a new dataset, and in other procedures we simply code a (+1) to do the incrementing.

Are there any (advantages, disadvantages) to using one routine over the other, or is there any real difference in the end result of doing either? (RF)

A:

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)

Your Comments are Welcome

We welcome your comments and suggestions on this and all CNS documentation. Please send your comments to:


CNS Information Services

2124 NE Waldo Rd, Suite 2100
Gainesville Florida  32609-8922
(352) 392.2061

UF Computing & Networking Services
2124 NE Waldo Rd, Suite 2100
Gainesville, Florida 32609-8922

Phone: (352) 392.2061
E-mail: editor@cns.ufl.edu

CNS DOCWEB Home
CNS Home Page
CNS Publications Page
Search All CNS Docs