Strovent SystemsSign in
Reference

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

  • Enter
  • Clear
  • PA1, PA2, PA3 (program attention)
  • PF1 to PF24 (program function)
  • SysReq and Attn (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

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.

Sources

Spotted a mistake? Email [email protected].