PFKEY System Option: Windows

Specifies which set of function keys to designate as the primary set of function keys.

Valid in: configuration file, SAS invocation
Category: Input Control: Data Processing
PROC OPTIONS GROUP= INPUTCONTROL
Default: WIN
Windows specifics: all

Syntax

-PFKEY PRIMARY | ALTERNATE | SAA | WIN

Required Arguments

PRIMARY

maps F1 through F12 to the mainframe primary settings for PF1 through PF12 and Shift + F1 through Shift + F12 to PF13 through PF24. The right mouse button (RMB) is mapped to MB2. If you have only 10 function keys, F11, F12, Shift + F11, and Shift + F12 are not available and are not shown in the KEYS window.

Here are the primary mainframe key definitions:
Primary Mainframe Key Definitions
PC Key
Mainframe
Definition
Key
Mainframe
Definition
F1
mark
Shift + F1
help
F2
smark
Shift + F2
zoom
F3
unmark
Shift + F3
zoom off; submit
F4
cut
Shift + F4
pgm; recall
F5
paste
Shift + F5
rfind
F6
store
Shift + F6
rchange
F7
prevwind
Shift + F7
backward
F8
next
Shift + FF8
forward
F9
pmenu
Shift + F9
output
F10
command
Shift + F10
left
F11
keys
Shift + F11
right
F12
undo
Shift + F12
home
RMB
zoom off; submit

ALTERNATE

maps F1 through F12 to the alternate mainframe key settings. That is, F1 through F12 maps to PF13 through PF24. The result is that F1 through F12 are equivalent to Shift + F1 through Sift + F F12. The right mouse button (RMB) is mapped to MB2. If you have only 10 function keys, F11 and F12 are unavailable and are not shown in the KEYS window. F13 through F24 are mapped to F1 through F12 if your keyboard has only 12 function keys instead of 24.

Here are the alternate mainframe key definitions:
Alternate Mainframe Key Definitions
PC Key
Mainframe
Definition
Key
Mainframe
Definition
F1
help
F7
backward
F2
zoom
F8
forward
F3
zoom off; submit
F9
output
F4
pgm; recall
F10
left
F5
rfind
F11
right
F6
rchange
F12
home
RMB
zoom off; submit

SAA

maps F1 through F12 to the IBM SAA values for CUAPF1 through CUAPF12 and Shift + F1 through Shift + F12 to CUAPF13 through CUAPF24. The right mouse button (RMB) is mapped to MB2. If you have only 10 function keys, F11, F12, Shift + F11, and Shift + F12 are unavailable and are not shown in the KEYS window.

SAA stands for System Application Architecture, which is a framework for application development and is used across IBM systems. CUA (Common User Access) is a part of SAA that defines the user interface and components that should be identical across applications.
Here are the IBM SAA key definitions:
SAA Key Definitions
PC Key
Mainframe
Definition
Key
Mainframe
Definition
F1
help
Shift + F1
cut
F2
keys
Shift + F2
paste
F3
zoom off; submit
Shift + F3
store
F4
home
Shift + F4
mark
F5
pgm; recall
Shift + F5
unmark
F6
zoom
Shift + F6
smark
F7
backward
Shift + F7
left
F8
forward
Shift + F8
right
F9
prevcmd
Shift + F9
rfind
F10
pmenu
Shift + F10
rchange
F11
command
Shift + F11
undo
F12
cancel
Shift + F12
next
RMB
zoom off; submit

WIN

specifies to use the default key definitions for SAS under Windows. WIN is the default.

Details

Use the PFKEY system option when you do not want the default key definitions for SAS under Windows but instead want to use other key mappings (for example, the mappings used by SAS under z/OS).
Note that the function key values shown in the previous key map tables are for the Base SAS windows only. Other windowing SAS products, such as SAS/AF software, have other key definitions.
If you do not specify the PFKEY system option, or if you specify an invalid value, SAS loads the default Windows key definitions. For a list of key definitions, open the KEYS window by entering keys in the command bar.