Define a Non-VSAM Data Set: Example 2

In this example, two existing non-VSAM data sets are defined in a catalog, USERCAT4. The DEFINE NONVSAM command cannot be used to create a non-VSAM data set because the command does not allocate space.
//DEFNVS   JOB    ...
//STEP1    EXEC   PGM=IDCAMS
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
     DEFINE NONVSAM -
           (NAME(EXAMPLE.NONVSAM) -
           DEVICETYPES(3380) -
           VOLUMES(VSER02) ) -
         CATALOG(USERCAT4/USERMRPW)
     DEFINE NONVSAM -
           (NAME(EXAMPLE.NONVSAM2) -
           DEVICETYPES(3380) -
           VOLUMES(VSER02) ) -
         CATALOG(USERCAT4)
/*
Both DEFINE NONVSAM commands define a non-VSAM data set in catalog USERCAT4. The parameters are:
  • NAME specifies the name of the non-VSAM data sets, EXAMPLE.NONVSAM and EXAMPLE.NONVSAM2.
  • DEVICETYPES specifies the type of device that contains the non-VSAM data sets, an IBM® 3380 Direct Access Storage Device.
  • VOLUMES specifies the volume that contains the non-VSAM data sets, VSER02.
  • CATALOG identifies the catalog that is to contain the non-VSAM entries, USERCAT4.