//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG(NAME(WLAWDB.PROD@B.CASE.NEJKAID2) -
LIMIT(10) -
NOEMPTY -
SCRATCH)
/*
The difference between empty and noempty is
EMPTY
specifies that all the generation data sets are to be uncataloged When the maximum is exceeded (each data set's non-VSAM entry is automatically deleted from the catalog).
NOEMPTY
specifies that only the oldest generation data set is to be uncataloged when the maximum is reached.
The difference between scratch and noscratch is
SCRATCH
specifies that the generation data set's DSCB is to be deleted from the volume's VTOC when the generation data set is uncataloged. Direct access device space management (DADSM) removes the data set's DSCB from the VTOC, erases the data set's space on the volume, and makes the space available to other system users. The generation data set ceases to exist. For SMS-managed GDSs, SCRATCH also specifies that the NVR is to be removed from the VVDS when the data set is uncataloged.
NOSCRATCH
specifies that the generation data set's DSCB is not to be removed from the volume's VTOC when the generation data set is uncataloged. The data set's DSCB in the volume's VTOC is left intact and can be used to locate the data set. Your program, however, can process the data set by using a JCL DD statement to describe and allocate the data set.
No comments:
Post a Comment