Query 5250 (QsnQry5250) API


  Required Parameter Group:


  Omissible Parameter:


  Returned Value:


  Default Public Authority: *USE

  Service Program: QSNAPI

  Threadsafe: No

The Query 5250 (QsnQry5250) API is used to retrieve the results of the Query 5250 command for the current device. The Query 5250 command returns device and controller attributes for the current device, such as whether wide mode and graphical user interface (GUI) are supported.


Authorities and Locks

None.


Restrictions

This command is not supported by all control units. A query status of 3 indicates if the query failed.


Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that is to receive the result of the query. You can specify that the size of the area be smaller than the format requested as long as you specify the length of the receiver variable parameter correctly. As a result, the API returns only the data the area can hold. The format of the data returned is shown in Format of the Query Data.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If the length is larger than the size of the receiver variable, the results are unpredictable. The minimum length is 8 bytes.

The API returns as much information as it can fit in this length. If the available information is longer, it is truncated. If the available information is shorter, the unused output is unchanged; whatever is already stored in that space remains there. To determine how much information the API actually returns in response to this call, see the bytes returned field. To determine how much information the API could return if space were available, see the bytes available field.


Omissible Parameter

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Returned Value

Return code
OUTPUT; BINARY(4)

A return code indicating the result of the operation. The value returned will be 0 if the operation was successful, or -1 otherwise.


Format of the Query Data



Field Descriptions

Further details on the fields listed can be found in the 5494 Remote Control Unit Functions Reference, SC30-3533, manual.

Bytes available. The number of bytes of data available to be returned. All available data is returned if enough space is provided.

Bytes returned. The number of bytes of data returned.

Code Level. Identifies the code release level.

Control unit customization. Indicates customization parameters for the control unit as:

Byte 0

Byte 1: Reserved

Device capabilities. Defines the operating capabilities of the designated device as:

Byte 0

Byte 1--display screen capabilities

Byte 2

Byte 3

Byte 4

Byte 5

Byte 6: Reserved

Bytes 7-8:

Byte 9: Reserved for use by PC emulators to indicate additional 5250 image or fax formats supported

Byte 10:

Byte 11: Reserved

Extended keyboard ID. The device code for extended 5250 keyboards.

Grid buffers. The number of grid buffers that are available in the device.

Images or faxes. The number of images or faxes that can be presented on a display screen.

Image or fax scaling granularity.

Image or fax rotating granularity.


Image or fax support.

Invisible tags. Defines more device capabilities of the designated device as:

Keyboard ID. Reserved. This field is set to X'00'.

Machine type code. An EBCDIC code for the machine type.

Maximum input fields. The maximum number of input fields available (256).

Model number. An EBCDIC code for the machine model number.

PC keyboard ID. Device code for PC keyboards attached to a 5250 work station (X'00' for nonprogrammable work stations).

Query status. The status of the 5250 query data. The possible values are:

Reserved. An ignored field.

Serial number. Field for device serial number. This field is set to zero for a work station with no serial number.

Type of grid line support.

Work station control unit. The type of control unit.

Work station type code. The workstation type. The value is X'01' for display station.


Error Messages



API introduced: V2R3

[ Back to top | Dynamic Screen Manager APIs | APIs by category ]