PF (Program Function) keys are essential for navigating ISPF and mainframe systems. Different terminal emulators map these keys differently, which can be confusing when switching between emulators or working with different systems. This guide provides mappings for popular terminal emulators and explains how to find and customize PF key mappings.
Understanding PF key mappings is crucial for efficient mainframe work. The same PF key (like PF3 for End) may be triggered by different key combinations in different emulators. This guide helps you understand these differences and find the right keys for your emulator.
PF keys are function keys that send commands to the mainframe host. In ISPF, they're mapped to common operations:
| PF Key | Function | Description |
|---|---|---|
| PF1 | Help | Display help information |
| PF2 | Split | Split screen (editor) |
| PF3 | End/Exit | End current function, return to previous menu |
| PF4 | Return | Return to previous panel |
| PF5 | Rfind | Repeat find (editor) |
| PF6 | Rchange | Repeat change (editor) |
| PF7 | Scroll Up | Scroll backward/up |
| PF8 | Scroll Down | Scroll forward/down |
| PF9 | Swap | Swap screens (split screen) |
| PF10 | Left | Scroll left (wide screens) |
| PF11 | Right | Scroll right (wide screens) |
| PF12 | Cancel | Cancel current operation |
| PF13 | Cursor | Cursor command (editor) |
| PF24 | Retrieve | Retrieve previous command |
TN3270 is IBM's official terminal emulator for mainframe access.
| PF Key | Keyboard Key | Notes |
|---|---|---|
| PF1 | F1 | Standard function key |
| PF2 | F2 | Standard function key |
| PF3 | F3 | Standard function key |
| PF4 | F4 | Standard function key |
| PF5-PF12 | F5-F12 | Standard function keys |
| PF13-PF24 | Shift+F1-F12 | Shift + function key |
TN3270 allows customization through the Settings menu:
PuTTY is a popular open-source terminal emulator that supports TN3270.
| PF Key | Keyboard Key | Notes |
|---|---|---|
| PF1 | Alt+F1 or Ctrl+F1 | May vary by configuration |
| PF2 | Alt+F2 or Ctrl+F2 | May vary by configuration |
| PF3 | Alt+F3 or Ctrl+F3 | May vary by configuration |
| PF4 | Alt+F4 or Ctrl+F4 | May vary by configuration |
| PF5-PF12 | Alt+F5-F12 or Ctrl+F5-F12 | May vary by configuration |
| PF13-PF24 | Shift+Alt+F1-F12 or Shift+Ctrl+F1-F12 | May vary by configuration |
PuTTY allows customization through the Configuration window:
SecureCRT is a commercial terminal emulator with extensive customization options.
| PF Key | Keyboard Key | Notes |
|---|---|---|
| PF1 | F1 | Standard function key |
| PF2 | F2 | Standard function key |
| PF3 | F3 | Standard function key |
| PF4 | F4 | Standard function key |
| PF5-PF12 | F5-F12 | Standard function keys |
| PF13-PF24 | Shift+F1-F12 | Shift + function key |
SecureCRT provides extensive customization:
MobaXterm is a Windows terminal emulator with built-in X server.
| PF Key | Keyboard Key | Notes |
|---|---|---|
| PF1 | F1 | Standard function key |
| PF2 | F2 | Standard function key |
| PF3 | F3 | Standard function key |
| PF4 | F4 | Standard function key |
| PF5-PF12 | F5-F12 | Standard function keys |
| PF13-PF24 | Shift+F1-F12 | Shift + function key |
MobaXterm allows customization:
x3270 is a Unix/Linux terminal emulator for TN3270.
| PF Key | Keyboard Key | Notes |
|---|---|---|
| PF1 | F1 | Standard function key |
| PF2 | F2 | Standard function key |
| PF3 | F3 | Standard function key |
| PF4 | F4 | Standard function key |
| PF5-PF12 | F5-F12 | Standard function keys |
| PF13-PF24 | Shift+F1-F12 | Shift + function key |
x3270 can be customized via configuration files:
If you're not sure about your emulator's PF key mappings, here's how to find them:
Most emulators allow you to customize PF key mappings. Here's why and how:
General steps for customizing PF keys:
Common issues with PF key mappings and how to resolve them:
Problem: Pressing function keys doesn't trigger PF keys.
Solutions:
Problem: Pressing a key triggers the wrong PF key.
Solutions:
Problem: Can't access PF13-PF24 (typically Shift+F1-F12).
Solutions:
Quick reference for common PF keys across emulators:
| PF Key | TN3270 | PuTTY | SecureCRT | MobaXterm |
|---|---|---|---|---|
| PF1 (Help) | F1 | Alt+F1 or Ctrl+F1 | F1 | F1 |
| PF3 (End) | F3 | Alt+F3 or Ctrl+F3 | F3 | F3 |
| PF7 (Scroll Up) | F7 | Alt+F7 or Ctrl+F7 | F7 | F7 |
| PF8 (Scroll Down) | F8 | Alt+F8 or Ctrl+F8 | F8 | F8 |
| PF12 (Cancel) | F12 | Alt+F12 or Ctrl+F12 | F12 | F12 |
| PF13-PF24 | Shift+F1-F12 | Shift+Alt+F1-F12 | Shift+F1-F12 | Shift+F1-F12 |
Think of PF keys like special buttons on a remote control:
So PF keys are like special buttons for controlling your mainframe - different emulators have them in different places, but they all do the same things, and you can customize them to work the way you want!
Practice working with PF keys:
Objective: Identify PF key mappings in your emulator.
Steps:
Objective: Test PF keys in ISPF.
Steps:
Objective: Customize a PF key mapping.
Steps:
1. What is PF3 typically used for in ISPF?
2. What is PF1 typically used for in ISPF?
3. What is PF12 typically used for in ISPF?
4. What is PF7 typically used for in ISPF?
5. What is PF8 typically used for in ISPF?