The format of the open list information is common across many of the open list APIs. The open list APIs return data for use by the process open list APIs. The process open list APIs are located in the Miscellaneous part whereas the open list APIs can be found in the applicable sections. For example, the Open List of Messages (QGYOLMSG) API is located in the Messages part.
The following shows the format of the list information parameter in the open
list APIs. For a detailed description of each field, see the Field
Descriptions.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Total records |
| 4 | 4 | BINARY(4) | Records returned |
| 8 | 8 | CHAR(4) | Request handle |
| 12 | C | BINARY(4) | Record length |
| 16 | 10 | CHAR(1) | Information complete indicator |
| 17 | 11 | CHAR(13) | Date and time created |
| 30 | 1E | CHAR(1) | List status indicator |
| 31 | 1F | CHAR(1) | Reserved |
| 32 | 20 | BINARY(4) | Length of information returned |
| 36 | 24 | BINARY(4) | First record in receiver variable |
| 40 | 28 | CHAR(40) | Reserved |
Date and time created. The date and time when the list was created. The 13 characters are:
First record in receiver variable. The number of the first record returned in the receiver variable.
Information complete indicator. Whether all requested information has been supplied. Possible values follow:
Length of information returned. The size, in bytes, of the information that is returned in the receiver variable.
List status indicator. The status of building the list.
Possible values follow:
Record length. The length of each record of information returned. For variable length records, this value is set to zero. For variable length records, you can obtain the length of individual records from the records themselves.
Records returned. The number of records that are returned in the receiver variable. This number is the smallest of the following values:
Request handle. The handle of the request that can be used for subsequent requests of information from the list. The handle is valid until the Close List (QGYCLST) API is called to close the list, or until the job ends.
Note: This field should be treated as a hexadecimal field. It should not be converted from one CCSID to another, for example, EBCDIC to ASCII, because doing so could result in an unusable value.
Reserved. An ignored field.
Total records. The total number of records available in the list.
| Top | Concepts | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |