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 non-VSAM data set named A.B.C is cataloged. The data set is stored on two volumes.

          CATALOG ADDABC             CATALOG DATA SET A.B.C.
 
         Check Return Codes
 
ADDABC    CAMLST     CAT,DSNAME,,VOLUMES
DSNAME    DC         CL6'A.B.C'      ONE BLANK FOR DELIMITER
VOLUMES   DC         H'2'            DATA SET ON TWO VOLUMES
          DC         X'3010200E'     3380 DISK DEVICE CODE
          DC         CL6'000014'     VOLUME SERIAL NUMBER
          DC         H'0'            DATA SET SEQUENCE NUMBER
          DC         X'3010200E'     3380 DISK DEVICE CODE
          DC         CL6'000015'     VOLUME SERIAL NUMBER
          DC         H'0'            SEQUENCE NUMBER

The CATALOG macro instruction points to the CAMLST macro instruction. CAT, the first operand of CAMLST, specifies that a data set is to be cataloged. DSNAME, the second operand, specifies the virtual storage location of the data set name A.B.C. VOLUMES, the fourth operand, specifies the virtual storage location of the volume list.

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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014