Define a Path: Example 1

In this example, a path is defined. Previous examples illustrate the definition of the path's alternate index, EXAMPLE.AIX, and the alternate index's base cluster, EXAMPLE.KSDS2. The alternate index, path, and base cluster are defined in the same catalog, USERCAT.
//DEFPATH  JOB   ...
//STEP1    EXEC  PGM=IDCAMS
//SYSPRINT DD    SYSOUT=A
//SYSIN    DD    *
     DEFINE PATH -
           (NAME(EXAMPLE.PATH) -
           PATHENTRY(EXAMPLE.AIX)) -
          CATALOG(USERCAT)
 /*
The DEFINE PATH command builds a path entry to define the path EXAMPLE.PATH. A list of the command's parameters follows:
  • NAME specifies that the path's name is EXAMPLE.PATH.
  • PATHENTRY identifies the alternate index, EXAMPLE.AIX, that the path provides access to.
  • CATALOG supplies the user catalog's name, USERCAT.