z/OS DFSMS Managing Catalogs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using LISTCAT in Examples

z/OS DFSMS Managing Catalogs
SC23-6853-00

A catalog's self-describing entries are contained in the catalog itself. A catalog's connector record, which associates the catalog to its aliases is contained in the master catalog.

When you are listing the self-describing entries for a catalog, specify the name of the catalog in the CATALOG parameter. For example, the following step can be used to list the self-describing entry for SYS1.ICFCAT.VSYS303:
 //LSTSDENT EXEC PGM=IDCAMS
 //SYSPRINT DD SYSOUT=A
 //SYSIN    DD *
     LISTCAT ALL ENTRIES(SYS1.ICFCAT.VSYS303) -
        CATALOG(SYS1.ICFCAT.VSYS303)
 /*
You can use LISTCAT to determine which VVDSs are connected to a BCS. You can use this information to determine which VVDSs to compare to a BCS when you use the DIAGNOSE command. For example, the following step lists the VVDSs connected to SYS1.ICFCAT.VSYS303:
 //LSTVVDS EXEC PGM=IDCAMS
 //SYSPRINT DD SYSOUT=A
 //SYSIN    DD *
    LISTCAT LEVEL(SYS1.VVDS) CATALOG(SYS1.ICFCAT.VSYS303)
 /*
You can use LISTCAT to list the aliases associated with a catalog. Specify ALL with the catalog name in the ENTRIES parameter. The aliases are listed in the Associations group for the user catalog. If you specify a catalog in the CATALOG parameter, specify the master catalog. The following example lists the aliases associated with SYS1.ICFCAT.VSYS303:
 //LSTALIAS EXEC PGM=IDCAMS
 //SYSPRINT DD SYSOUT=A
 //SYSIN    DD *
     LISTCAT ALL ENTRIES(SYS1.ICFCAT.VSYS303)
 /*
You can use LISTCAT to display all fields associated with tape library and tape volume entries. Specify LIBRARYENTRIES to list tape library entries. Specify VOLUMEENTRIES to list tape volume entries. This example lists the tape library entry named ATLLIB1. Specify ALL to list all information associated with the tape library entry ATLLIB1.
//LISTCLIB JOB  ...
//STEP1    EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   *
     LISTCAT ENTRIES(ATLLIB1) -
        LIBRARYENTRIES -
        ALL
This example lists all the tape volume entries whose names begin with the letters ‘VA’ in the tape library named ATLLIB1.
//LISTCLIB    JOB     ...                                               
//STEP1       EXEC   PGM=IDCAMS                                         
//SYSPRINT    DD     SYSOUT=A                                           
//SYSIN       DD     *                                                  
      LISTCAT -                                                         
           VOLUMEENTRIES(VA*) -                                         
           LIBRARY(ATLLIB1) -                                           
           ALL              

For more details on using LISTCAT, see z/OS DFSMS Access Method Services Commands. For details on using CATLIST, see z/OS DFSMS Using the Interactive Storage Management Facility.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014