SET PFKEY command
Associates a Debug Tool command with a Program Function key (PF key). This setting is not supported in batch mode.
>>-SET--PFn--+--------+--=--+---------+--;--------------------->< '-string-' '-command-'
- PFn
- A valid program function key specification (PF1 - PF24).
- string
- The label shown in the PF key display (if the KEYS setting is ON) that is entered as a string constant. The string is truncated if longer than eight characters. If the string is omitted, the first eight characters of the command are displayed. For C and C++, the string must be surrounded by quotation marks ("). For COBOL, LangX COBOL, PL/I, assembler, and disassembly, the string can be surrounded by either quotation marks (") or apostrophes (').
- command
- A valid Debug Tool command,
partial command, or multiple commands.
If you specify multiple commands, you must surround them with string delimiters. For C and C++, you must surround them with quotation marks ("). For COBOL, LangX COBOL, PL/I, assembler, and disassembly, you can surround them with either quotation marks (") or apostrophes (').
Usage notes
- If you specify the ? as the command, the ? is understood to be the command, not a request for syntax help.
- In Debug Tool, if there is any text on the command line at the time the PF key is pressed, that text is appended to the PF key string, with an intervening blank, for execution.
- The initial settings for PF keys 13-24 are equivalent to PF keys
1-12, respectively.
If you change the setting for a PF key in the 1–12 range, the equivalent key in the 13–24 range remains the same.
Example
Define the PF5 key
to scroll the cursor-selected window forward.
- If the programming language setting is COBOL:
SET PF5 "Down" = IMMEDIATE SCROLL DOWN;
- If the programming language setting is PL/I:
SET PF5 'Down' = IMMEDIATE SCROLL DOWN;
- If the programming language setting is C++:
SET PF5 "Down" = IMMEDIATE SCROLL DOWN;