z/OS DFSMSdfp Advanced Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example

z/OS DFSMSdfp Advanced Services
SC23-6861-01

In the following example, the catalog entry for data set A.B.C is removed from a catalog.

         CATALOG REMOVE             REMOVE REFERENCES TO DATA SET A.B.C
*                                   FROM CATALOG
 
        Check Return Codes
 
REMOVE   CAMLST     UNCAT,DSNAME
DSNAME   DC         CL6'A.B.C'      ONE BLANK FOR DELIMITER

The CATALOG macro instruction points to the CAMLST macro instruction. UNCAT, the first operand of CAMLST, specifies that references to a data set are to be removed from the catalog. DSNAME, the second operand, specifies the virtual storage location of the fully-qualified name of the data set whose references are to be removed.

Control is returned to your program at the instruction following the CATALOG macro instruction. Register 15 contains one of the return codes described under Return Codes from CATALOG.

Restriction: The CAMLST UNCAT or UCATDX function is not supported for system-managed data sets. These are ignored. The function is not performed and the return code is 0.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014