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, data set A.B.C is deleted from two volumes. The expiration date in the identifier (format-1) DSCB is ignored.
          SR       0,0              SHOW NO UCB IS SUPPLIED
          SCRATCH  DELABC           DELETE DATA SET A.B.C
*                                   FROM TWO VOLUMES,
*                                   IGNORING EXPIRATION
*                                   DATE IN THE DSCB
 
DELABC    CAMLST   SCRATCH,DSABC,,VOLIST,,OVRD
DSABC     DC       CL44'A.B.C'      DATA SET NAME
VOLIST    DC       H'2'             NUMBER OF VOLUMES
          DC       X'3030200E'      3380 DISK DEVICE CODE
          DC       CL6'000017'      VOLUME SERIAL NO.
          DC       H'0'             SCRATCH STATUS CODE
          DC       X'3030200E'      3380 DISK DEVICE CODE
          DC       CL6'000018'      VOLUME SERIAL NO.
          DC       H'0'             SCRATCH STATUS CODE
Recommendation: Check the return codes and SCRATCH status codes.

The SCRATCH macro instruction points to the CAMLST macro instruction. The SCRATCH operand specifies that a data set be deleted. DSABC specifies the virtual storage location of a 44-byte area containing the fully-qualified name of the data set to be deleted. VOLIST specifies the virtual storage location of the volume list you have built. OVRD specifies that the expiration date in the DSCB of the data set to be deleted should be ignored.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014