Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 19 of 35

5250 Terminal Emulation Programmer's Reference Guide: Section 8: Display Data Stream, pages 159 to 167

Pages 159 to 167 of 318, from 5250 Terminal Emulation Programmer's Reference Guide

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 159

Section 8

Display Data Stream "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

Overview This section describes the following: The host 5250 display data stream commands the host application can send to wireless stations. " The host 5250 data stream orders that the host can send to wireless stations. Orders govern format and data expectations within the Write to Display command. " Asynchronous 5250 prefixes. " System messages and parameter errors that can appear in the wireless station’s display. This section is not intended as a specific guide for programming, but a comparison with your existing system. The information helps identify differences between your screengenerating utilities and the features supported by the wireless stations. "

5250 Terminal Emulation Programmer’s Reference Guide

8-1

Page 160

SECTION 8

"

Display Data Stream

Screen Design Aid This section, along with your Screen Design Aid (SDA) documentation, can help you resolve occasional questions concerning discrepancies that may arise regarding attribute selection and the capabilities of the wireless stations. This section includes information you may not need, because you can use your SDA to do much, if not all, of the programming to handle commands and orders for the radio data network. This information is provided to assure you have the most accurate and detailed information available and to describe variations from the 5250 data stream where they occur. If you are comfortable using the SDA on your host computer, you can flip through this section to find out which commands and orders the wireless stations support. You can then read Section 9, which describes the extended commands you can use to do operations beyond the capability of the 5291 Display Station.

Applications If you need to write applications specifically for the wireless station, it is recommended that you use the corner mode window onto the IBM 5291 Display Station and write programs using the portion of the display available without moving the window. This is the most efficient method for developing custom applications for the wireless station.

8-2

5250 Terminal Emulation Programmer’s Reference Guide

Page 161

SECTION 8

"

Display Data Stream

Data Stream Command Structure The 5250 command structure lets the wireless stations display prompts and accept keyboard or scanner input. A second kind of command, called an order, works with the Write To Display command to define radio display characteristics, buffer sizes, and acceptable data types. Display data stream commands form two categories: the input commands and the output commands. Table 8-1 lists input commands and hex codes. Table 8-1 Input Commands and Hex Codes Input Commands

Hex Code

Read Immediate

72

Read Modified Immediate Alternate

83

Read Input Fields

42

Read MDT Fields

52

Read MDT Alternate

82

Read Screen

62

Save Screen

02

Write Structured Field

(Not supported)

Table 8-2 lists output commands and hex codes.

5250 Terminal Emulation Programmer’s Reference Guide

8-3

Page 162

SECTION 8

"

Display Data Stream

Table 8-2 Output Commands and Hex Codes Output Commands

Hex Code

Clear Format Table

50

Clear Unit

40

Clear Unit Alternate

(Not supported)

Restore Screen

12

Roll

23

Write Error Code

21

Write to Display

11

Input and output commands are described on the following pages. The IBM 5250 Information Display System Functions Reference Manual (IBM part number SA21-9247-6 provides more detailed descriptions than those presented in this programmer’s guide).

Input Commands Input commands consist of immediate and AID-associated Read commands. Immediate commands are executed when the controller receives the command. AID-associated commands are queued until the operator presses an AID-generating key such as Enter/Rec Adv. Other AID-generating keys are listed in the section for each wireless station.

Read Immediate (Immediate) Command Function. The Read Immediate command is similar to the Read Screen command, except the data comes from the format table rather than the display. 8-4

5250 Terminal Emulation Programmer’s Reference Guide

Page 163

SECTION 8

"

Display Data Stream

The command sends back the contents of all the input fields on the display. Restrictions. This command must be the last command in the chain and the controller must have change of direction (CD). The command is rejected if the wireless station is in an error, system request, or SS message state. " NOTE:

If the display supports a separate message line, and the message line is selected, the command is rejected only for the system request and SS message states. The command is processed with the display in error state.

Format. The command takes the following form: ESC

Read Immediate Command

Hex 04

Hex 72

Results. Information associated with this command returns to the user in the LU-LU nonexpedited flow. What the user receives when they issue this command depends on the condition of the master modified data tag (MDT) bit: "

"

If the MDT bit is not set, the user receives: Cursor Address AID Code If the master MDT bit is set, the user receives: Cursor Address AID Code Field Data

The field data consists of the contents of all input fields as they appear on the display, unless resequencing has been specified. Any attributes contained in a field are treated as data and returned as such. Field boundary attributes are not considered part of the field. All nulls are converted to blanks. If the specified field is a signed numeric field, the last character is not sent.

5250 Terminal Emulation Programmer’s Reference Guide

8-5

Page 164

SECTION 8

"

Display Data Stream

If that same field is negative, the zone position of the nextto-the-last character is changed to hex D. In each case, the returned cursor address indicates the current location of the cursor and the AID code is hex 00. " NOTE:

Queued Read commands and pending AID codes are not cleared. The format table, display annunciators, insert mode keying history, and display contents are not affected.

Read Modified Immediate Alternate Command Read Modified Immediate Alternate command enables the host to read data from modified input fields without depending on the operator to press an AID request key. Format. The command takes the following form: ESC

Read Modified Immediate Alternate Command

Hex 04

Hex 83

Results. This command is processed the same as the Read Immediate command, except for these differences in the format of data sent to host: "

"

"

"

8-6

Controller only returns data from those fields in the format table that have the MDT bit on. Data field is delimited by Set Buffer Address (SBA) orders in the same way as the response data field for the Read MDT Fields command. Leading and imbedded nulls within each field’s data are not converted to blanks. Trailing nulls within each field’s data are suppressed.

5250 Terminal Emulation Programmer’s Reference Guide

Page 165

SECTION 8

"

Display Data Stream

Read Input Fields Command Function. The Read Input Fields command causes the wireless station to wait for the operator to press an active AID-generating key, then sends the contents of all fields defined in the format table to the host. Restrictions. The operator must press an AID-generating key to execute this command. Also, CD in the Request/Response Header (RH) must be on before the AID byte can be serviced. This command is cleared if: The host system issues a session control request (such as Unbind). " The host system issues a Clear Unit command and the controller executes it. " The host system sends another Read command to the same LU and overlays this command. " The Read command is executed. Format. The command takes the following form: "

ESC Hex 04

Read Input Fields Command Hex 42

CC Byte 1 Hex 00

CC Byte 2 Hex 13

Results. Information associated with this command returns to the user in the LU-LU nonexpedited flow. Note that the host system cannot receive this information until the operator presses an AID-generating key. What the user receives when they issue this command depends on the condition of the master MDT bit: "

If the master MDT bit is not set, the user receives: Cursor Address AID Code -- Cursor Address: Position of the cursor when the AID-generating key was pressed. -- AID Code: Code for the AID-generating key the operator used. 5250 Terminal Emulation Programmer’s Reference Guide

8-7

Page 166

SECTION 8

"

Display Data Stream

"

"

The user receives the cursor address and AID code if any of the following keys are pressed: Clear Help Print Record Backspace in home position If the master MDT bit is on, the user receives: Cursor Address AID Code Field Data -- Cursor Address: Position of the cursor when the AID-generating key was pressed. -- AID Code: Code for the AID-generating key the operator used. -- Field Data: Returned only when one of the following AID-generating keys is used: Roll up/Page down Roll down/Page up Enter/Rec Adv An unmasked function key When it is returned, the field data consists of the contents of all input fields as they appear on the display unless resequencing has been specified.

Any attributes in a field are treated as data and returned as such. Field attributes are not considered part of the field. All nulls are converted to blanks. All pending AID request bytes are cleared. If the specified field is signed numeric, the first character is not sent; if that same field is negative, the zone position of the next-to-the-last character is changed to hex D. Though data is not sent, the CC bytes are processed. To determine the appropriate codes for the control character (CC) bytes, see Table 8-3 and Table 8-4 under the Write To Display topic (page 8-22).

8-8

5250 Terminal Emulation Programmer’s Reference Guide

Page 167

SECTION 8

"

Display Data Stream

Format of Returned Data. The format of the returned data is: Bytes 1 and 2 Cursor address

Byte 3

Byte 4

Byte 5

AID code

Field data

Field data

Byte 6 and all that follow contain the remaining field data from the format table. The wireless station returns complete contents of each field, with nulls converted to blanks.

Read MDT Fields Command Function. The Read MDT Fields command causes the wireless station to wait for the operator to press an active AIDgenerating key, then sends all fields that have their MDT bit set. The bit could have been set by the operator entering data in the field or by the Write to Display (WTD) command. Restrictions. The operator must press an AID-generating key to execute this command. In addition, the CD in the RH for the requested LU must be on before any information can be sent back to the host system in response to the command. The command is cleared if: " A session control request (such as Unbind) is issued by the host. " A Clear Unit command is issued. " The host system sends another Read command to the same LU and overlays this command. " The Read command is serviced. Format. The command take the following form: ESC

Read MDT Command

CC Byte 1 CC Byte 2

Hex 04

Hex 52

00

13

5250 Terminal Emulation Programmer’s Reference Guide

8-9