5250 Data Stream Details

Aid-generating keys

The AID (attention indicator) code identifies to the host system the function being requested from the keyboard. The AID code is returned by certain input operations when the operator presses an AID-generating key. The following table lists the AID-generating keys and the AID codes associated with each key. See Format of the Low-Level Environment Description for instructions on how to specify an alternative help key.



Control characters

The display control characters (CCs) are always specified as a pair of 1-byte fields. They are used on the QsnWTD, QsnReadInp, QsnReadMDT, and QsnReadMDTAlt APIs. These characters select specific operations for the display station to perform. Byte 1 is always processed first. When the CCs are used with the QsnWTD API, the first CC is processed immediately while the second CC is not processed until all the other information associated with the API has been processed. When used with an input operation, both CCs are processed after the operation has completed. The following two tables list the valid control character values and their associated mnemonics.





Screen attribute characters

The screen or field attributes control the image produced on the display station screen. Each attribute occupies one character position in the display station regeneration buffer and is displayed as a blank. The effect produced by an attribute begins at its location in the regeneration buffer and continues until the next attribute appears. The attributes for non-color displays are shown in the table below and for color displays in the Screen Attributes for Color Displays table. There are certain operations that allow a value to be specified for a screen attribute that indicates no screen attribute should be used. Where supported, the value is X'00' and the mnemonic is QSN_NO_SA.





Display address

The display address is the address at which data is displayed or a field definition begins. This can be modified explicitly with a Set Output Address (QsnSetOutAdr) call, or implicitly with output operations, such as those associated with the Write Data (QsnWrtDta) API, that accept a cursor position. The 5250 Write to Display (WTD) command initializes the display address to row 1, column 1. Because each output operation contains a WTD command, this means that the display address is reset on each direct screen output operation.


Insert cursor address

The insert cursor (IC) order specifies the position of the cursor when the host system unlocks the keyboard and when the display station operator presses the Home key. The display address is not affected by this address. This can be set with the Insert Cursor (QsnInsCsr) API, and in some cases with the Set Cursor Address (QsnSetCsrAdr) API (only when the Move Cursor (MC) order is not supported).


Modified data tag (mdt) bit

There is a modified data tag (MDT) bit for each input field and a master MDT bit. These bits are used to determine which fields should be returned in response to the Read Modified Fields (QsnReadMDT), Read Modified Alternate (QsnReadMDTAlt), and Read Modified Immediate Alternate (QsnReadMDTImmAlt) APIs. The MDT bit for a field and the master MDT bit can be set using bit 4 of the field format word (see Format of the Field Format Word) on a Set Field (QsnSetFld) API. The master MDT bit and the MDT bit for a field are set on anytime the operator types into or alters a field on the display. Once the bits are set, only a control character for resetting them (see Control Character Byte 1), or a clear screen operation using the Clear Screen (QsnClrScr) API or a Start of Header order, can reset them.


Resequencing

Resequencing allows the control unit to return up to 128 input fields in any specified order. Resequencing is accomplished by chaining input fields together with Field Control Words specifying resequencing. (See Format of the Field Control Word and the 5250 data stream documentation for details.)


States and modes

The display station can be in one of several states (conditions), each with its accompanying modes (methods of operation). The following is a list of these states and their associated modes:

See the 5250 data stream documentation for a detailed explanation of each state and mode.


Dumping the 5250 data stream commands

If you wish to produce a dump of the 5250 data stream commands that are produced by the DSM APIs, you should create a physical file (using the CRTPF command) having a record length of 2000. Name the physical file QSNDEBUGF, and ensure that the QSNDEBUGF file exists in the library list. DSM will dump the 5250 data stream commands to that file.


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