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


Example 1: OPEN macro used to open two data sets

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

In this example, the access method control block for one data set is generated at execution; the other is generated at assembly.
        GENCB  BLK=ACB,        An access method control block.         x
               DDNAME=DATA
        LTR    15,15
 
        BNZ    ERROR
 
        LR     2,1             Address of the control block.
        OPEN   (BLOCK,,(2))    A label is used for the access method   x
                               control block generated by ACB;         x
                               register notation is used for the       x
                               one generated by GENCB.  The two commas x
                               indicate the omission of options.
 
BLOCK   ACB   ,                Another access method control block.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014