AID keys (Enter, PF, PA, Clear)
The keys that send the screen to the host, what each one sends, and which ones send no field data.
An AID (attention identifier) key is a key that makes the terminal send data to the host. Every other key only edits the screen locally.
Every transmission starts with one AID byte that names the key. For Enter and the PF keys, the cursor address and every field you changed follow it. Clear and the PA keys send the AID byte alone.
The AID keys
EnterClearPA1,PA2,PA3(program attention)PF1toPF24(program function)SysReqandAttn(see below)
On a keyboard with 12 function keys, PF13 to PF24 are usually reached with Shift. See PA and PF keys for what applications do with them.
AID byte values
The values are fixed by the 3270 data stream (shown in hexadecimal):
Enter 7D Clear 6D
PA1 6C PA2 6E PA3 6B
No AID 60
PF1 F1 PF2 F2 PF3 F3
PF4 F4 PF5 F5 PF6 F6
PF7 F7 PF8 F8 PF9 F9
PF10 7A PF11 7B PF12 7C
PF13 C1 PF14 C2 PF15 C3
PF16 C4 PF17 C5 PF18 C6
PF19 C7 PF20 C8 PF21 C9
PF22 4A PF23 4B PF24 4C
Short reads
Clear and the three PA keys are short-read keys. When the host reads the screen with Read Modified, the read CICS normally uses, they send only the AID byte: no cursor address and no field data. This is why pressing PA1 or Clear does not submit what you typed.
Enter and the PF keys send a three-byte read heading (the AID byte and the two-byte cursor address), then the modified fields.
A host can ask for the fields anyway with the Read Modified All command, which sends modified fields whatever key was pressed.
Keys that look like AID keys but are not
Resetunlocks the keyboard after an input error. It is local and sends nothing. See Local keys.AttnandSysReqinterrupt or switch sessions. How they are sent depends on the connection (classic TN3270 or TN3270E), so clients differ. See Attn and SysReq over TN3270: why the key does nothing.
Why the cursor address matters
With Enter and the PF keys, the host often cares where the cursor was. A menu may treat Enter with the cursor on a line as a selection. Many applications use PF keys for the same action regardless of the cursor.
Related
- How a 3270 terminal works
- Fields and attributes
- App guide: Keyboard shortcuts
- Attn and SysReq over TN3270: why the key does nothing
- Unformatted 3270 screen: what Enter sends after Clear
- Automate a 3270 session from a script: s3270, Wait and screen scraping
- What HLLAPI and EHLLAPI are, and when you need them
- Enter vs Return on 3270, 5250 and VT keyboards, and the New Line key