Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
DEVTYPE—Example 2—Includes Building a Parameter List z/OS DFSMSdfp Advanced Services SC23-6861-01 |
|
Example 2 of DEVTYPE builds a parameter list in dynamically-acquired
storage so the program can be reentrant. It then supplies additional
parameters in the first execute form and overrides some of them in
the second execute form. In effect, the first specification of DEVTYPE
is:
ILIST1 describes four bytes to be returned. They are at the beginning
of a 20-byte area - DEVTYPE clears the extra 16
bytes. The list form at KDTLIST specifies parameters that will
not be overridden by the first execute form. The execute form specifies
parameters that are determined during execution. In effect, the second
specification of DEVTYPE is:
The INFOLIST describes 20 bytes to be returned. The first execute form illustrates an unusual technique of coding a keyword parameter (MF) before two positional parameters. The first positional value is null, and the second position is (AREA,L'AREA). This generally is not a good technique because it is confusing. It is used here only to show the flexibility that Assembler H and High Level Assembler allow. For another example of DEVTYPE, see Figure 1. |
Copyright IBM Corporation 1990, 2014
|