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 20 of 28

TE 2000 3270 Terminal Emulation Programmer's Guide: Section 6: Data Stream Commands

Pages 161 to 174 of 240, from TE 2000 3270 Terminal Emulation Programmer's Guide

The original document is the PDF (4.2 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 161

Section 6

Data Stream Commands "

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

"

This section describes 3270 SNA/SDLC and asynchronous display data stream commands and orders that the host application can send to the terminals. Orders govern format and data expectations within a data stream command. Also included in this section is information on formatting data to be displayed on the terminals. 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 screen-generating utilities and features supported by the terminals.

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 terminals. 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 network. This information is provided to assure you have the most accurate and detailed information available and to describe variations from the 3270 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 terminals support. You can then read Section 7, which describes the extended commands you can use to do operations beyond the capability of the 3278 Model 2 Terminal.

Applications If you need to write applications specifically for the terminal, it is recommended that you use the corner mode window onto the 3278 Model 2 Terminal 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 terminal.

TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-1

Page 162

SECTION 6

Data Stream Commands

3270 Data Stream Commands The 3270 data stream consists of application data, commands and structured field functions, and orders which are transmitted between the controller and the host system. The terminals support a subset of the IBM 3270 command structure to display and accept keyboard or scanner input. The following chart lists the SNA/SDLC and asynchronous commands that the terminals support.

Command Erase All Unprotected Erase/Write Erase/Write Alternate Read Buffer Read Modified Read Modified All Reset Terminal System Services Control Point Write

Syntax SNA/SDLC (Hex) 6F F5 7E F2 F6 6E Not applicable F1

Asynchronous ? 5 = 2 6 > G 4 1

Erase All Unprotected Command The Erase All Unprotected command performs the following functions at the selected terminals: " " "

Clears unprotected buffer locations to nulls. Resets to 0 the MDT bit for each unprotected field. Positions cursor address to the first location of the buffer.

Erase/Write Command The Erase/Write command performs both an erase operation and a write operation, as follows: 1. The erase operation clears the device buffer to nulls, positions the cursor address at the first location in the buffer, and resets the buffer address to its first location. 2. The Erase/Write command performs the write and write control character (WCC) operations in the same manner as the Write command. If no WCC is sent, the Erase/Write command will not erase the buffer.

Erase/Write Alternate Command The Erase/Write Alternate command performs the same function in the terminal as the Erase/Write command, and allows both the erase and write operations to take place.

6-2

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 163

SECTION 6

Data Stream Commands

Read Buffer (RB) Command The RB command causes buffer data from the terminal to be transmitted to the main storage in the central processing unit. All buffer data and nulls from the beginning to the end of the buffer location are included in the transfer. The default setting for the beginning of buffer data transfer is 0. If the RB command is chained from the Write or Erase/Write command, data transfer will begin from the current buffer address with all nulls suppressed. The RB response starts with a 3-byte heading that includes the AID character and a 2-character cursor address. The controller inserts a Start Field order to identify the beginning of each field. Alphanumeric data for each field then follows the RB command header. The RB command data stream uses the following format: <AID code> <cursor address> <SF order> <attribute byte> <first data field> <second data field> " NOTE:

Response times increase for the Read Buffer command because of the large quantity of data processed during the read buffer operation.

Read Modified Command A major feature of the Read Modified command is null suppression. During read modified command operations, null codes are not sent. During a Read Modified command, all modified fields are transferred to the program. All nulls are suppressed during data transfer and thus are not included in the read data stream. As a field is modified by the operator, the MDT bit is set in the attribute byte for that field. Then, when a read-modified operation is performed, successive attribute bytes are examined for a set MDT bit. When the bit is found, the data in the associated field is read (with nulls suppressed) before the next attribute byte is examined. If the screen is unformatted the entire screen (with nulls suppressed) is sent.

Read Modified All Command The Read Modified All command is the same as the Read Modified command.

Reset Terminal The Reset Terminal command is an asynchronous command that returns the terminal to its first “state,” a known condition. All terminals are reset when “t” is omitted. Terminals respond to a poll with their power-up message.

EXAMPLE:

Function

Syntax

Controller

R Response

Resets terminal(s)

Gt<cr> [t only] G<cr> [all]

OK<cr> tP,x<cr>

Variables:

t = Terminal number (network address) x= Terminal type code (071 for 3270)

Command: Response:

G002<cr> Controller resets terminal 002 TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-3

Page 164

Data Stream Commands

SECTION 6

System Services Control Point (SSCP) Command The SSCP command reads in new data from the host and places it at the current cursor position. If a 0x15 new line character is among the data, the terminal performs a newline function. The SSCP command has no orders or WCC character associated with it. The command generates an unformatted screen.

Write Command A Write command from the host computer consists of a command code, a WCC, and any orders or new buffer data (or both) required to modify the existing buffer contents. Execution of the Write command is in two steps: 1) The WCC is processed and 2) Buffer data and orders are processed. Data may be any ASCII character in the range of 0x20 to 0x7E, and must define the character content of a field. Buffer data characters may be written into any buffer location without erasing or modifying the data in other locations. Data is stored in successive buffer locations until an order alters the buffer address, or until all data is entered. During the write operation, the buffer address advances one location as each character is stored. If the Set Buffer Address order does not immediately follow the WCC command, the terminal will write data from the first buffer location.

Write Control Character Bits 0, 1, and 2 of the WCC cause action in the terminal. The following describes the format of the WCC byte. 0 Reset MDT bits When set to 1, all MDT bits in the selected buffer are reset before any data is written or orders are executed. 1 Keyboard restore bit When set to 1, the terminal allows input. The stations locks out all data when it sends data to the host and will not accept input until it receives a command with this bit set. 2 Sound alarm bit When set to 1, the selected terminal’s alarm emits three short beeps after operation. 3–7 Unused (“do not care”) bits. " NOTE:

Bit numbers are in the opposite order of those described in the IBM 3270 Information Display System Component Description manual.

The terminal ignores all WCC bits defined as “unused.” Only the three least significant bits of the WCC byte cause action in the terminal. These are converted to ASCII characters. Appendix C contains a binary to ASCII conversion table. Orders and buffer data follow the WCC. Data characters are any of the displayable ASCII characters in the range hexadecimal 20 through 7E. They define the character content of a protected or unprotected field. Buffer data characters may be written into any specific location of the buffer without erasing or modifying the data in other buffer locations. Data characters are stored in successive buffer locations until an order alters the buffer address, or until all data is entered. 6-4

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 165

SECTION 6

Data Stream Commands

During the write operation, the buffer address is advanced one location as each character is stored. If the Set Buffer Address order does not immediately follow WCC, the terminal starts writing data from the first location of the buffer.

3270 Data Stream Format The 3270 data stream terminal command format (WtDxyz) is an asynchronous format that an asynchronous host uses to send data to the terminal. Syntax

Controller Response

R Response

WtDxyz<cr>

None tKas{Atu.../Atu}<cr>

Variables: t =

Terminal number x=

3270 data stream command: ? Erase All Unprotected 5 Erase/Write = Erase Write Alternate 2 Read Buffer 6 Read Modified > Read modified all G Reset terminal 4 SSCP 1 Write y=

3270 write control character (WCC) Bit 0 Reset MDT bits Bit 1 Keyboard restore Bit 2 Sound alarm z=

Terminal orders or <1024 characters a=

AID key code s=

4-byte right-justified, zero-filled address of the current cursor position when the AID key was pressed (values 0--1919)

/At = Set Buffer order followed by a 4-byte right-justified, zero-filled address of the field from where the data is returned u = Data entered or modified for this field {} = Optional EXAMPLE:

Command:

W000D5G/A0000/F’ID:/F@%/A0017/F’/A0081/ DESCRIPTION:/A0160/F@%/A0177/F’/A0241/ QUANTITY:/F@&/A0253/F’<cr>

This command is for a terminal in the window and 16x9 display mode. The command displays the following on the terminal: ID:% DESCRIPTION: % QUANTITY:&

TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-5

Page 166

SECTION 6

Data Stream Commands

If the user enters “210458236” for the ID field, “PEACH CRATES” for the description field, and “85” for the quantity field, the screen displays: ID:210458236 DESCRIPTION: PEACH CRATES QUANTITY: 85

When the terminal operator presses [ENTER], the host receives the following 000K’0252/A0004210458236/A0161PEACH CRATES/A025085 response:

Orders Terminal orders may be included in each 3270 data stream command, either alone or intermixed with display data. Terminal orders are executed sequentially, and only after the complete data stream has been received by the terminal and checked for errors. Orders are not stored in the display buffer with other data in the data stream. For the asynchronous data stream, they are added to the data stream following a “/” character. Buffer control orders position, define, and format data being written into the buffer. They also erase selected unprotected data in the buffer and reposition the cursor address. Table 6-1 lists the orders. Table 6-1 3270 Data Stream Orders Code Order EUA

SNA/ SDLC Asynch.* Byte 2 12 /Exxxx 1st address byte

Byte 3 Byte 4 2nd address byte Not used

IC

13

/C

Not used

Not used

Not used

PT

05

/P

Not used

Not used

Not used

RA

3C

/Rxxxxy

1st address byte

2nd address byte Character to be repeated

SCN

1F

/Sttt**

Bar code control byte 1st option byte

SBA

11

/Axxxx

1st address byte

2nd address byte Not used

SF

1D

/Fa

Attribute character

Not used

*

2nd option byte Not used xxxx = a 4-byte buffer address, 0 to 1919, right-adjusted, zero-filled y = character to be repeated ttt = scanner order designator a = an attribute byte

** /Sttt applies only to the 6400, 5055, 59XX, 17XX, and 11XX Terminals.

The following pages describe buffer control orders executed sequentially at the selected terminal after the complete data stream was received by the station and checked for data integrity. These orders are not stored in the display buffer. Most of the buffer control orders position, define, and format data written into the buffer, erase selected unprotected data in the buffer, and reposition the cursor address. The Scanner order is an extension of the 3270 data stream and is not supported by the 3278 Model 2. 6-6

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 167

SECTION 6

Data Stream Commands

EUA Order The Erase Unprotected to Address (EUA) order inserts nulls in all unprotected buffer locations, starting at the current buffer address and ending at (but not including) the specified stop address. For the asynchronous data stream, the stop address is specified by address bytes “xxxx” which immediately follow the EUA order in the write data stream. For SNA/SDLC (non-Telnet), the stop address is specified by the two address bytes which immediately follow the EUA in the write data stream. If an invalid stop address is specified (that is, an address outside the range of the terminal’s display buffer) the following occur (not necessarily in the order listed): The write operation is terminated at this point. " The character is not stored. " The terminal recognizes this as an error condition and performs a clear memory operation. " The display buffer is set to nulls. " A clear AID character is transmitted to the terminal control unit for forwarding to the host computer. When the stop address is lower than the current buffer address, the EUA order wraps from the end of the buffer to the beginning of the buffer and continues. When the stop address equals the current buffer address, all unprotected character locations in the buffer are erased (set to nulls). "

Insert Cursor (IC) Order The IC order changes the stored cursor address to the location specified by the current buffer address. The current buffer address does not change. For example, if the IC order is issued when the current buffer address is 320 and the present stored cursor address is 0 (zero), the cursor address changes from 0 to 320. The current buffer address at the end of this operation remains at address 320. If multiple IC orders appear in the write data stream, the last one encountered is used in subsequent operations. If the IC order is placed at a location past the end of display on the terminal, the current buffer address will be updated so that the cursor address will be located on the display. At the end of write data stream, after all orders have been executed by the terminal and all required data has been entered into the buffer, the stored cursor address determines which unprotected field should be displayed to the user first. The following algorithm is used: 1. The terminal searches the buffer backward to find the first protected field attribute before the stored cursor address. Unprotected attributes are not considered. 2. The terminal executes a forward tab (or equivalent) to an unprotected field. 3. If a protected field attribute is not found before the first location of the display buffer is found (location 0), then an unconditional forward tab equivalent will be executed, displaying the first unprotected field in the buffer.

TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-7

Page 168

SECTION 6

Data Stream Commands

Program Tab (PT) Order The PT order advances the current buffer address of the first character position to the next unprotected field. Special conditions are as follows: If the PT order is issued when the current buffer address is the location of an attribute byte of an unprotected field, the buffer address is set to the next location of that field (location 1). " If a PT order follows data, the rest of the field is null-filled. " If a PT order in the write data stream does not follow a control command, order (or order sequence such as WCC), IC order, or RA order (4-character sequence), nulls are inserted from the current buffer address to the end of the field. " When the PT order follows a control command, order, or sequence order, the buffer content is not modified for that field. The PT order stops its search at the last location in the buffer. If an attribute character for an unprotected field is not found by this point, the buffer address is set to 0 (first location of the buffer). If the PT order finds an unprotected attribute in the last location of the buffer, the buffer address is still set to location 0. "

To continue the search for an unprotected attribute, a second PT order must be issued immediately following the first one. Since the current buffer address was set to 0 by the first PT order, the second PT order begins its search starting at location 0. If the previous PT order was inserting nulls in each character location when it was terminated at the last buffer location, the new PT order will continue to insert nulls from buffer location 0 to the end of the current field.

Repeat Address (RA) Order The RA order stores a character “y” in all buffer locations starting at the current buffer address and ending at (but not including) the specified stop address. For the asynchronous protocol, the stop address is “xxxx.” The stop address and the character to be repeated are identified by the five bytes immediately following the RA order in the write data stream. For the SNA/SDLC protocol, the third character following the RA order is always interpreted as the character to be repeated. If an invalid stop address is specified (such as an address outside the range of the terminal’s display buffer), the following occur (not necessarily in the order listed): The write operation is terminated at that point. " The character is not stored. " The terminal recognizes this as an error condition. " The terminal automatically performs a clear memory operation. " The entire display buffer is set to nulls. " A clear AID character is transmitted to the terminal control unit for forwarding to the host. When the stop address is lower than the current buffer address, the RA operation wraps from the end of the buffer to the beginning of the buffer and continues. When the stop address equals the current buffer address, the specified character is stored in all buffer locations. "

Attribute characters will be overwritten by the RA order if they occur before the RA order stop address. 6-8

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 169

SECTION 6

Data Stream Commands

/Sttt Scanner (SCN) Order " NOTE:

/Sttt applies only to the 6400, 5055, 59XX, 17XX, and 11XX Terminals.

The SCN order is an extension to the 3270 data stream and is not supported by IBM display terminal. The order tells the terminal which bar code algorithm to apply to the bar code data read by the bar code reading device, and what the minimum and maximum length range of a valid decode is. When auto-discriminating bar codes, the probability of a cross-substitution increases. To reduce this probability, the application can enable only certain algorithms and specify the minimum and maximum number of characters needed for a good decode. The SCN parameters are stored in the terminal and do not need to be sent with every Write command. These parameters are in effect for all data fields (that is, they are not specific to any one field). If the decoded data is not within the bounds of the SCN parameters, then the decode is considered to be bad. If the decode meets the SCN parameters, then the data is passed to the keyboard handler which may reject the data if it does not fit the target field attributes. The SCN order has the following format: Syntax: (/Sttt) S = SCN order " First t = bar code control " Second t = option byte 1 " Third t = option byte 2 The “bar code control” byte indicates the method by which the option bytes are to be decoded. You may need to send multiple SCN orders to handle all parameters and bar codes that may be used. The terminal contains the bar code algorithms for those bar codes listed in Table 6-2 on the next page. For additional bar code scanning options for the terminal using the 3270 extended command set, see “Scan (#S)” in Section 7, “Extended Commands.” "

TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-9

Page 170

SECTION 6

Data Stream Commands

Table 6-2 Scanner Order Byte Definitions

Parameter Bar code length UPC bar codes

Bar Code Control Byte (Hex) Option Byte 1 00 Maximum length 01 00

Option Byte 2 Bit Definitions Minimum length Bit 5 = Enable UPC Bit 4 = Enable UPC with add-ons Bit 3 = Expand UPC-E to UPC-A Bit 2 = UPC-E System 1 EAN bar codes 02 00 Bit 5 = Enable EAN Bit 4 = Enable EAN with add ons CODE 39 bar codes 03 00 Bit 5 = Enable CODE 39 Bit 4 = Enable Extended CODE 39 PLESSEY bar codes 04 00 Bit 5 = Enable PLESSEY Bit 4 = Retain 2nd check digit Bit 3 = Validate 1st check digit Bit 2 = Retain 1st check digit Bit 1 = MOD 10 1st check digit Bit 0 = MOD 11 1st check digit CODABAR bar codes 05 00 Bit 5 = Enable ABC CODABAR Bit 4 = Enable CODABAR CODE 93 bar codes 07 00 Bit 5 = Enable CODE 93 2 of 5 bar codes 2 09 00 Bit 5 = Enable Straight 2 of 5 Bit 4 = Enable Computer Identics 2 of 5 Bit 3 = Enable Interleaved 2 of 5 Redundancy 11 00 Bit 3 = Enable CCD 20/20 scanning Bit 2 = Enable HP wand scanning Bit 1 = Enable CCD 20/20 redundancy Bit 0 = Enable laser beam redundancy 3 Scanning options 12 00 Bit 6 = Enable use of bits 1 and 2 Bit 5 = Enable bar code type character Bit 4 = Enable scanning concatenation Bit 3 = Enable auto scan/forward tab Bit 2 = Enable auto scan/enter Bit 1 = Laser Scanner voltage: 0--5 volts, 1--12 volts (RT3210 Radio Terminal) Bit 0 = Enable MOD 10 check digit 1 The maximum and minimum values for bar code lengths must be a value between hexadecimal 01 and hexadecimal 20 (decimals 1 and 31). If an LS order (bar code control byte hexadecimal 00) is not sent to the terminal, the default setting is a minimum length of 1 and maximum length of 32. All values above (hexadecimal yy) are hex values for the lower six bits of the bytes. With the 3270 data stream, these values need to be converted into EBCDIC display characters. An EBCDIC conversion chart is provided in Appendix C. 2 The bar code control byte for 2 OF 5 (hexadecimal 09) requires four additional bytes of information, which directly follow option byte 2. These fields must have a value in the lower 6 bits between hexadecimal 01and 20 (decimals 1 and 32), and be converted to display characters by using the EBCDIC conversion chart in Appendix C. The required extra fields are: <maximum length> <minimum length> <Fix 1 length> <Fix 2 length> 3 Scanning options may also be set through the terminal’s firmware menus or TE configuration menus.

6-10

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 171

SECTION 6

Data Stream Commands

The following chart shows an example of an SCN order in a write data stream. In this example Code 39 and Extended Code 39 are enabled with a maximum length of 24 and a minimum length of 8. CCD redundancy is also enabled. Byte Value (Hex) 1F 03 00 60 1F 00 18 08 1F 11 00

Meaning Scanner order (SCN) Bar code control byte, Code 39 Option byte 1 Option byte 2, enable Code 39 and Extended Code 39 Scanner order (SCN) Bar code control byte, bar code lengths Option byte 1, maximum length of 24 (decimal) Option byte 2, minimum length of 8 (decimal) Scanner order (SCN) Bar code control byte, redundancy Option byte 1

Set Buffer Address (SBA) Order The 3-byte SBA order specifies a new buffer address from which operations are to start or continue. Operations start at address 0 (zero) by default. Use the SBA order to write data into various areas of the buffer. An SBA order may also do the following: Precede another order in the data stream to specify the starting address for a PT, RA, or EUA order. " Specify the address at which an attribute byte is stored by an SF order. " Specify the cursor address for an IC order. If the SBA order specifies an invalid address (that is, an address outside the range of the terminal’s display buffer) the following occur: "

1. 2. 3. 4. 5.

The write operation is terminated at that point. The terminal recognizes this as an error condition. The terminal automatically performs a clear memory operation. The entire display buffer is set to nulls. A clear AID character is transmitted to the terminal control unit for forwarding to the host. The result of this action is the same as if the user had selected Function 7 (clear memory).

Start Field (SF) Order The SF order notifies the terminal that the next byte in the write data stream is an attribute character. The terminal stores the next byte and attribute character at the current buffer address. As the attribute character is stored, the terminal sets a control bit at the address. This bit identifies the byte as an attribute character during subsequent program or device operations with the buffer data. " NOTE:

The byte immediately following the SF order in the data stream is always stored as an attribute character, even when the byte is intended as an order or an alphanumeric data character. TE 2000t 3270 Terminal Emulation Programmer’s Guide

6-11

Page 172

SECTION 6

Data Stream Commands

The byte following the SF order defines the characteristics or “attributes” of the data that follows. Each attribute character, plus all the data following it up to the next attribute character (or the last location of the buffer) is called a field. In addition to defining the start of a field, attribute characters define these characteristics for all character locations contained within the field: " Protected from modification by the user, or unprotected (available for the operator to modify or enter data). The unprotected definition classifies the field as an input field. " Alphanumeric (an input field in which the operator can enter alphabetic, numeric, or symbol characters) or numeric (an input field in which the period, dash, and numbers 0--9 may be used). " Field displayed or not displayed to the user. Each character occupies one of the character locations in the buffer, but cannot display. Table 6-3 lists attribute character bit assignments. During display operations, attribute characters appear as blanks. Table 6-3 3270 Attribute Character Bit Assignments Description Not used Not used 0 = Unprotected 1 = Protected 4* 0 = Alphanumeric 1 = Numeric only 3, 2 00 = Field is displayable, normal video mode 01 = Field is displayable, normal video mode 10 = Field is displayable, reverse video mode 11 = Field is nondisplayable 1 1 = Keyboard only data 0 = Keyboard or bar code reader input allowed MDT bit identifies modified fields which must be sent to the controller when 0 transmission begins: 0 = Field has not been modified. 1 = Field has been modified; may also be set by the application program in the data stream to force transmission of a particular field. * Bits 5 and 4 equal to 11 cause an automatic skip. Bit # 7 6 5*

Attribute characters are treated as characters that are protected from user intervention. They cannot be replaced by alphanumeric characters entered from the keyboard or scanner. However, the MDT of the attribute can be changed by the operator by using Table 6-3. Also, attribute characters are not protected from being overwritten by alphanumeric data that is included in a Write, Erase/Write, or Erase All Unprotected command data stream. Additional SF features include Automatic Skip, Auto-Forward Tab, and Auto Enter.

Automatic Skip

Automatic Skip automatically forwards tabs to the next input field when the current input field is full. This is done by setting the attribute byte of the next field to be protected and numeric (bits 5 and 4 of the attribute character are equal to 11). This indicates to the terminal that when the last byte in the input field is filled, the terminal should advance to the next input field. 6-12

TE 2000t 3270 Terminal Emulation Programmer’s Guide

Page 173

SECTION 6

Data Stream Commands

Auto-Forward Tab

The Auto-Forward Tab on a good bar code scan is used for unprotected (input) fields to allow keystroke operations to be emulated upon the detection of a good scan. The Auto-Forward Tab will automatically advance to the next input field after processing bar code data. For asynchronous communications, initiate this feature by inserting a “%” character in the first byte of an unprotected (input) field after the attribute byte of a SF order (/Fa%).

Auto Enter

The Auto Enter feature is also used for unprotected input fields to allow emulation of keystroke operations when a good scan is detected. Auto Enter on a good bar code scan will automatically emulate the pressing of the [Enter] key after processing bar code data. This sends the data to the host system. For asynchronous communications, initiate this feature by inserting an “&” character in the first byte of an unprotected input field after the attribute byte of a SF order (/Fa&).

Sending Data to the Host Data is returned to the host computer when the operator presses the [Enter] key on the terminal’s keyboard. When this happens, the station transmits all modified data fields back to the host computer. Data is returned to the host computer in the following format: <AID> <cursor address> <SBA> <attribute> <address +1> <data> <SBA> <attribute> <address +1> <alphanumeric data>

3270 AID Keys The 3270 AID keys request an application program from the host computer. Press [Enter], [F1]–[F24], [PA1], [PA2], [PA3], or the [CLEAR] key for the desired program. The AID key sends the AID code (an ASCII value) and any modified data. The [CLEAR], [PA1], [PA2], and [PA3] keys send only the AID code. Table 6-4 lists AID keys and values. Table 6-4 3270 Function Key Conversions AID Key F1 F2 F3 F4 F5 F6 F7 F8 F9 F10

Hexadecimal 41 42 43 44 45 46 47 48 49 4A

ASCII A B C D E F G H I J

AID Key F11 F12 F13 F14 F15 F16 F17 F18 F19 F20

Hexadecimal 4B 4C 4D 4E 4F 50 51 52 53 54

ASCII K L M N O P Q R S T

AID Key Enter Clear PA1 PA2 PA3

Hexadecimal 27 37 59 5A 2C

TE 2000t 3270 Terminal Emulation Programmer’s Guide

ASCII ’ 7 Y Z ,

6-13

Page 174

Data Stream Commands

6-14

TE 2000t 3270 Terminal Emulation Programmer’s Guide

SECTION 6