Building the PUTLINE Parameter Block
When the list form of the PUTLINE macro instruction expands, it builds a three-word PUTLINE parameter block (PTPB). The list form of the macro instruction initializes the PTPB according to the operands you have coded in the macro instruction. The initialized block, which you can later modify with the execute form of the PUTLINE macro instruction, indicates to the PUTLINE service routine the function you want performed. You must supply the address of the PTPB to the execute form of the PUTLINE macro instruction. Because the list form of the macro instruction expands into a PTPB, all you need do is pass the address of the list form of the macro instruction to the execute form as the PARM value.
The PUTLINE parameter block is defined by the IKJPTPB DSECT, which is provided in SYS1.MACLIB. Table 1 describes the contents of the PTPB.
| Number of bytes | Field name | Contents or meaning |
|---|---|---|
| 2 | Control flags. These bits describe the output
line to the PUTLINE service routine. Byte 1:
Byte 2:
|
|
| 2 | PUT options field. These bits indicate to the
PUTLINE service routine which of the options you want to use for PUT. Byte
1:
Byte 2: Reserved. |
|
| 4 | PTPBOPUT | The address of the output line descriptor (OLD) if the output line is a message. The address of the fullword header preceding the data if the output line is a single data line. The address of a forward-chain pointer preceding the fullword data header, if the output is multiline data. |
| 4 | PTPBFLN | Address of the format only line. The PUTLINE service routine places the address of the formatted line into this field. |