Query Line Description (QOLQLIND) API

  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Query Line Description (QOLQLIND) API queries an existing token-ring, Ethernet, wireless, FDDI, frame relay, or X.25 line description. The data received from the query is placed in the user buffer parameter.

The line description to be queried does not have to be associated with any links the application program has enabled. However, data in the line description may change after it is queried.


Authorities and Locks

None.


Required Parameter Group

Return code
OUTPUT; BINARY(4)

The recovery action to take. See Return and Reason Codes.

Reason code
OUTPUT; BINARY(4)

The error that occurred. See Return and Reason Codes.

Number of bytes
OUTPUT; BINARY(4)

The number of bytes of data returned in the user buffer.

User buffer
OUTPUT; CHAR(*)

The buffer where the data from the query will be received. Any unused space in the buffer will be filled with X'00'. The length of this character structure is determined using User Buffer Format.

User Buffer Format

Note: You are recommended to set the length user buffer value to a number large enough to hold the system maximum values of virtual circuits, SAPs, and group addresses with additional space left for future needs.

Line description
INPUT; CHAR(10)

The name of the line description to query. An existing token-ring, Ethernet, wireless, FDDI, frame relay, or X.25 line description must be used.

Format
INPUT; CHAR(1)

The format of the data returned in the user buffer. The valid values are as follows:

See Format of Data in the User Buffer for more information.


Optional Parameter Group

Length of user buffer
INPUT; BINARY(4)

The number of bytes available for the API to use in the user buffer parameter. The valid values are from 0 to 32,767.

Notes:

  1. This parameter is required if format 2 is specified in the format parameter. It is optional if format 1 is specified.

  2. If length user buffer is specified, bytes available must also be specified.

  3. If additional information exists that could not be reported, the bytes available parameter will contain a larger value than the bytes returned parameter.


Bytes available
OUTPUT; BINARY(4)

The total number of bytes of available information.

Notes:

  1. This parameter is required if format 2 is specified in the format parameter. It is optional if format 1 is specified.

  2. If bytes available is specified, length user buffer must also be specified.

  3. If the bytes available parameter contains a number larger than the bytes returned parameter, there is additional information that the application cannot access.

  4. If the return code parameter is nonzero, this value is set to zero.


Format of Data in the User Buffer

The data received in the user buffer from the query is made up of two parts. The first portion starts at offset 0 from the top of the user buffer and contains general query data. The format of this data does not depend on value of the format parameter supplied to the QOLQLIND API.

General Query Data

The second portion of the user buffer starts immediately after the general query data and contains data specific to the type of line description that was queried. The format of this data depends on the value of the format parameter supplied to the QOLQLIND API.

LAN Specific Data-Format 01

LAN Specific Data-Format 02

X.25 Specific Data-Format 01

X.25 Specific Data-Format 02



Return and Reason Codes

Return and Reason Codes for the QOLQLIND API



Error Messages



API introduced: V2R1

[ Back to top | Communications APIs | APIs by category ]