This example shows the ALLOCATE command being used to allocate
a non-VSAM data set. ALLOCATE, unlike DEFINE NONVSAM, lets you give
the SMS classes for a non-VSAM data set.
//ALLOC JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSABEND DD SYSOUT=A
/SYSIN DD *
ALLOC -
DSNAME(NONVSAM.EXAMPLE) -
NEW -
DATACLAS(PS000000) -
MGMTCLAS(S1P01M01) -
STORCLAS(S1P01S01)
/*
The parameters are:
- DSNAME specifies that the name of the data set to be allocated
is NONVSAM.EXAMPLE.
- NEW creates the data set does.is
- DATACLAS assigns an installation-defined name (PS000000) of a
data class to this new data set. This parameter is optional and, if
not used, the data set assumes the default data class assigned by
the ACS routines.
- MGMTCLAS assigns an installation-defined name (S1P01M01) of a
management class to this new data set. The data set assumes the migration
and backup criteria assigned to this management class by the ACS routines.
This parameter is optional and, if not used, the data set assumes
the default management class assigned by the ACS routines.
- STORCLAS assigns an installation-defined name (S1P01S01) of a
storage class to this new data set. This storage class and the ACS
routines determine the volume. This parameter is optional and, if
not used, the data set assumes the default storage class assigned
by the ACS routines.