Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Input Line Format - The Input Buffer z/OS TSO/E Programming Services SA32-0973-00 |
|
The fourth word of the PUTGET parameter block contains zeros until the PUTGET service routine returns a line of input. The service routine places the requested input line into an input buffer beginning on a doubleword boundary located in subpool 1. It then places the address of this input buffer into the fourth word of the PGPB. Note: The application that invoked PUTGET should release
the input buffer's storage to prevent the accumulation of unused
storage. The application can free the storage with the FREEMAIN macro instruction
after the application has processed or copied an input line.
For commands not running on a command invocation
platform:
For commands running on a command invocation platform:
Regardless of the source of input, the input line returned by the PUTGET service routine is in a standard format. All input lines are in the variable-length record format with a fullword header followed by the text returned by PUTGET. Figure 1 shows the format of the input buffer returned by the PUTGET service routine. Figure 1. Format of the PUTGET Input Buffer
The two-byte length field contains the length of the returned input line including the header (4 bytes). You can use this length field to determine the length of the input line to be processed, and later, to free the input buffer with the R form of the FREEMAIN macro instruction. The two-byte offset field is always set to zero on return from the PUTGET service routine. Figure 1 shows the PUTGET control block structure for a multilevel PROMPT message after the PUTGET service routine has returned an input line. |
Copyright IBM Corporation 1990, 2014
|