Program function (PF) keys can be defined as TSO/E or Session Manager commands, input to programs, or text-strings that comment your streams. Use the CHANGE.PFK command to modify the meaning of any of the PF keys. This command requires that you enter the number of the PF key to be changed, the definition-text-string for the key, and the name of the stream where the definition-text-string is to be placed when the PF key is pressed.
You can make a PF key a TSO/E command (or commands) by defining the definition-text-string as a valid TSO/E command or subcommand and specifying TSOIN as the target stream-name. This is useful when working with programs that prompt for input or commands that have subcommands. For example, you can define a PF key as often-entered subcommands of the TSO/E TEST command, such as SAVE or GO.
You can make a PF key a Session Manager command (or commands) by defining the definition-text-string as a valid Session Manager command and specifying SMIN as the target stream-name. This is done in the default environment to allow you to use the PF keys for scrolling.
If you have the definition-text-string sent to another stream (such as the TSOOUT stream), the PF keys can be used to comment your streams.
When you press a PF key, Session Manager:
You can also define PF keys to perform symbolic substitution when they are pressed. When you define the PF key, you can specify symbolic arguments within the definition-text-string and specify the SUBSTITUTE keyword operand to indicate that symbolic substitution is to be performed. Each symbolic argument is denoted by an ampersand (&) followed by an integer (or an asterisk). For example,
&1., &2., &3., ... &n., and &*.
If the ampersand appears elsewhere in the definition-text-string when SUBSTITUTE is specified, it must be doubled.
You must provide parameters (tokens) to this symbolic substitution process by entering them on a line of the screen (separated by one or more blanks), and pressing the PF key.
Session Manager performs the symbolic substitution for each new line of information found on the screen when you press a PF key. It:
The example section of the CHANGE.PFK command includes several examples of how the PF keys can be defined.
Most PF keys in the default environment are defined as a string of Session Manager commands that are placed in the SMIN stream.
The following figure summarizes the default definitions of the PF keys. PF keys 13-24 have the same definition as PF keys 1-12.
________________________________________________________________________
| PF1/13 Not Defined | PF2/14 Set Scroll | PF3/15 Not Defined |
| | Amount | |
|_______________________|________________________|_______________________|
| PF4/16 Not Defined | PF5/17 Find/Repeat | PF6/18 Change CURRENT |
| | Find | Window |
|_______________________|________________________|_______________________|
| PF7/19 Scroll | PF8/20 Scroll Forward | PF9/21 Scroll Top |
| Backward | | |
|_______________________|________________________|_______________________|
| PF10/22 Scroll Left | PF11/23 Scroll Right | PF12/24 Scroll Bottom |
| | | Unlock |
|_______________________|________________________|_______________________|
Figure 17. Program Function (PF) Key Definitions
The following section describes how the PF keys are defined in the default environment. Most of the keys are defined as several Session Manager commands that work together to create the desired effect. Unless you are using the split screen capability or have changed the definition for the default window, all references to the default window mean the MAIN window. For a complete description of each command, refer to OS/390 TSO/E Command Reference.
The commands that issue the message and move the PASSWD window over the SMOUT stream are:
CHANGE.PFK 1 'PFK 1 NOT DEFINED' SMOUT;
CHANGE.WINDOW PASSWD
VIEW(SMOUT)
The commands that define PF2/14 are:
CHANGE.PFK 2 'PUT ''&1'' EXTRA3 INTENSITY(2);
CHANGE.PFK 7 ''SCROLL.BACK 0;
SCROLL.BACK AMOUNT(&1);
SCROLL.ABSOLUTE 8 LVALUE;
CHANGE.TERMINAL CONTROL(0)''
SMIN;
CHANGE.PFK 8 ''SCROLL.FORWARD 0;
SCROLL.FORWARD AMOUNT(&1);
SCROLL.ABSOLUTE 8 LVALUE;
CHANGE.TERMINAL CONTROL(0)''
SMIN;
CHANGE.PFK 10 ''SCROLL.LEFT 0;
SCROLL.LEFT AMOUNT(&1);
SCROLL.LEFT LINE AMOUNT(&1);
SCROLL.ABSOLUTE 8 LVALUE;
CHANGE.TERMINAL CONTROL(0)''
SMIN;
CHANGE.PFK 11 ''SCROLL.RIGHT 0;
SCROLL.RIGHT AMOUNT(&1);
SCROLL.RIGHT LINE AMOUNT(&1);
SCROLL.ABSOLUTE 8 LVALUE;
CHANGE.TERMINAL CONTROL(0)''
SMIN' SMIN SUBSTITUTE
The commands that issue the message and move the PASSWD window over the SMOUT stream are:
CHANGE.PFK 3 'PFK 3 NOT DEFINED' SMOUT;
CHANGE.WINDOW PASSWD VIEW(SMOUT)
The commands that issue the message and move the PASSWD window over the SMOUT stream are:
CHANGE.PFK 4 'PFK 4 NOT DEFINED' SMOUT;
CHANGE.WINDOW PASSWD VIEW(SMOUT)
The commands that define PF5/17 are:
CHANGE.PFK 5 'SCROLL.BACKWARD 0;
FIND.BACKWARD ''&*'';
CHANGE TERMINAL CONTROL(5);
SCROLL.ABSOLUTE 8 LVALUE' SMIN
SUBSTITUTE(&)
The commands that define PF6/18 are:
CHANGE.PFK 6 'SAVE.PFK;
CHANGE.WINDOW CURRENT
TARGET(TSOIN) VIEW(TSOIN);
CHANGE.PFK 6 ''CHANGE.WINDOW
CURRENT TARGET(TSOIN)
VIEW(TSOOUT);
RESTORE.PFK '' SMIN ' SMIN
The commands that define PF7/19 are:
CHANGE.PFK 7 'SCROLL.BACKWARD AMOUNT(HALF);
CHANGE.TERMINAL CNTL(0);
SCROLL.ABSOLUTE 8 LVALUE' SMIN
The commands that define PF8/20 are:
CHANGE.PFK 8 'SCROLL.FORWARD AMOUNT(HALF);
CHANGE.TERMINAL CNTL(0);
SCROLL.ABSOLUTE 8 LVALUE' SMIN
The commands that define PF9/21 are:
CHANGE.PFK 9 'SCROLL.OLDEST;
CHANGE.TERMINAL CNTL(0);
SCROLL.ABSOLUTE 8 LVALUE'
SMIN
The commands that define PF10/22 are:
CHANGE.PFK 10 'SCROLL.LEFT AMOUNT(HALF);
SCROLL.LEFT LINE AMOUNT(HALF);
CHANGE.TERMINAL CNTL(0);
SCROLL.ABSOLUTE 8 LVALUE' SMIN
The commands that define PF11/23 are:
CHANGE.PFK 11 'SCROLL.RIGHT AMOUNT(HALF);
SCROLL.RIGHT LINE AMOUNT(HALF);
CHANGE.TERMINAL CNTL(0);
SCROLL.ABSOLUTE 8 LVALUE' SMIN
The commands that define PF12/24 are:
CHANGE.PFK 12 'SCROLL.LEFT LINE AMOUNT(MAX);
SCROLL.LEFT AMOUNT(MAX);
UNLOCK.NEWEST;
CHANGE.TERMINAL CNTL(LAST);
SCROLL.ABSOLUTE 7 LVALUE'
SMIN
© Copyright IBM Corp. 1988, 2000
Return to library: [ OS/390 | TPF | VM | VSE | IBM Hardware | S/390 Redbooks | RS/6000 SP ]
Glossary - IBM Dictionary of Computing
How to: [ Order publications | Contact OS/390 ]