Mainframe Path Start learning free
Beginner7 min readLesson 2 of 3

The keys that talk to the host

A 3270 terminal does not send each keystroke. You fill in the screen locally, and only an attention key (Enter, a PF key, PA1, PA2 or Clear) sends it to the mainframe. All the other keys, such as Tab, Erase EOF and Reset, act only on your own screen.

Two kinds of keys

Local keys versus attention keys
Local: never reach the host
Tab and Back Tab move between input fieldsHome goes to the first input fieldErase EOF clears from the cursor to the end of the fieldInsert toggles insert and overtypeReset unlocks a locked keyboard
Attention keys (AID): send the screen
Enter sends what you typedPF1 to PF24 send a function requestPA1 and PA2 interrupt or redisplay, without sending your typingClear blanks the screen and tells the application

The technical name for these is attention identifier keys. When you press one, the terminal sends the changed fields plus a code saying which key you pressed. The application then decides what Enter, PF3 or PF8 means on that panel. That is why the same key can do slightly different things in different products.

The PF keys you will press all day

KeyUsual meaning in ISPF and most products
PF1Help, or the long form of the current message
PF3End: save if relevant and go back one level
PF4Return: jump straight back to the starting menu
PF5 / PF6Repeat the last find / repeat the last change
PF7 / PF8Scroll up / down
PF10 / PF11Scroll left / right
PF12Usually Retrieve (recall your last command). On some panels it is Cancel
PF13–PF24Shifted PF1–PF12. By default most do the same as their partner

PA1, PA2 and Clear

When the keyboard locks

The bottom line of the emulator is the operator information area. When it shows an X with a symbol or the word SYSTEM, input is inhibited. If the host is busy, wait. If you typed somewhere you are not allowed, or into a full field, press Reset and try again.

Status line examples (the wording varies by emulator)
 4A  MA  a                                            03/015   ready
 4A  MA  X SYSTEM                                              host is working: wait
 4A  MA  X -f                                                  you typed somewhere you may not: press Reset
TRY IT YOURSELF

Which PF key takes you back one level (End) in ISPF? Type it as PFn.

Show a hint

It is the key you press thousands of times a week.

Show the solution

PF3 is End. PF4 is Return, which goes all the way back.

Examples are for learning. Run commands and jobs only on a system you are authorised to use, such as a training or test system, and never on production without approval.

Common mistakes

Pressing Enter to start a new line

Enter sends the whole screen to the host. Use Tab or the New Line key to move down to the next field.

Hammering keys while the keyboard is locked

Everything typed while X is showing is discarded. Press Reset once, then retype.

Pressing Clear inside a CICS transaction to 'tidy up'

Many CICS programs treat Clear as 'end this conversation'. You can lose what you entered.

What you will see at work

Key terms

Check your understanding.
Take this lesson's quiz and save your progress. Free.

Take the lesson quiz
← Anatomy of a mainframe screenMessages, help and panel IDs →