z/OS DFSMS Macro Instructions for Data Sets
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example: SHOWCB macro (display the length of an exit list)

z/OS DFSMS Macro Instructions for Data Sets
SC23-6852-02

In this example, a SHOWCB macro is used to display the maximum length of an exit list. The maximum length of an exit list is subsequently used in a GENCB macro to get virtual storage for an exit list.
       SHOWCB  AREA=LENGTH,                                            x
               FIELDS=EXLLEN,                                          x
               LENGTH=4
 
       L       0,LENGTH          Amount of storage for GETMAIN.
       GETMAIN R,LV=(0)
       LR      2,1               Address of storage for GENCB.
 
       GENCB   BLK=EXLST,        Indirect notation for length of return x
               LENGTH=(*,        area.                                 x
               LENGTH),                                                x
       .       WAREA=(2)
       .
LENGTH DS      F                 Contains the length of GENCB's return x
                                 area.
The SHOWCB macro's parameters are:
  • AREA and LENGTH specify the area, which begins on a fullword boundary, and its length, 4 bytes, that is used for the display.
  • FIELDS specifies that the maximum length of an exit list is displayed. Because only EXLLEN is specified, the EXLST parameter is omitted.

The GENCB macro specifies a return area in which an exit list is to be generated. The length of the return area is located at LENGTH, where the maximum length of an exit list was put as a result of the SHOWCB macro.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014