Define a User Catalog Using the MODEL Parameter: Example 6

In this example, the user catalog, USERCAT4, is used as a model for the user catalog being defined, RSTUCAT2.
//DEFCAT4  JOB    ...
//STEP1    EXEC   PGM=IDCAMS
//SYSPRINT DD     SYSOUT=A
//SYSIN    DD     *
     DEFINE USERCATALOG( -
           NAME(RSTUCAT2) -
           VOLUME(VSER03) -
           MODEL(USERCAT4 -
             USERCAT4)  ) -
/*
The DEFINE USERCATALOG command defines catalog RSTUCAT2. Its parameters are:
  • NAME names the catalog, RSTUCAT2.
  • VOLUME specifies that the catalog is to reside on volume VSER03. Volume VSER03 is dynamically allocated.
  • MODEL identifies USERCAT4 as the catalog to use as a model for RSTUCAT2. The attributes and specifications of USERCAT4 that are not otherwise specified with the above parameters are used to define the attributes and specifications of RSTUCAT2. The master catalog, AMAST1, contains a user-catalog connector entry that points to USERCAT4. This is why USERCAT4 is specified as MODEL's catname subparameter. Values and attributes that apply to RSTUCAT2 as a result of using USERCAT4 as a model are:
    • CYLINDERS = 3 (primary) and 2 (secondary) are allocated to the catalog
    • BUFFERSPACE = 3072 bytes
    • ATTEMPTS = 2
    • NOWRITECHECK
    • CODE is null
    • AUTHORIZATION is null
    • OWNER is null