Define an Alias for a User Catalog: Example 2

In this example, an alias is defined for a user catalog. The alias is defined in the master catalog.
//DEFUCALS  JOB   ...
//STEP1     EXEC  PGM=IDCAMS
//SYSPRINT  DD    SYSOUT=A
//SYSIN     DD    *
     DEFINE ALIAS -
           (NAME(RST) -
            RELATE(VWXUCAT1)) -
            CATALOG(AMAST1)
/*

The DEFINE ALIAS command defines an alias, RST, for the user catalog, VWXUCAT1. VSAM locates any data set defined with a first-level qualifier of RST in user catalog VWXUCAT1 when an access method services command or user program references the data set.

The parameters are:
  • NAME—the alias, RST.
  • RELATE—the name of the user catalog, VWXUCAT1, for which RST is an alternate entryname.
  • CATALOG—the name of the master catalog.