This example defines an existing SMS-managed non-VSAM data set
with the RECATALOG parameter.
//DEFNVSM JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DEFINE NONVSAM -
(NAME(EXAMPLE.NONVSAM3) -
DEVICETYPE(3380) -
VOLUMES(VSER01) -
RECATALOG)
/*
The parameters are:
- NAME specifies the name of the non-VSAM data set, EXAMPLE.NONVSAM3.
- DEVICETYPE specifies the type of device that contains the non-VSAM
data sets, an IBM® 3380 Direct
Access Storage. This parameter is required because RECATALOG is specified.
- VOLUMES specifies the volume, VSER01, that contains the SMS-managed
non-VSAM data sets. This parameter is also required because RECATALOG
is specified.
- RECATALOG specifies that the catalog entries are to be re-created.
This assumes that valid VVDS entries are found on the primary VVDS
volume, and the data set is SMS-managed. If either of these assumptions
is not true, the command will be unsuccessful.
It
is also assumed that CATALOG, FILESEQUENCENUMBER and OWNER were not
specified for the original define. If any of these parameters were
specified for the original define, they should be respecified in this
example containing RECATALOG.