[Library] [Contents] [Revisions] [Prev Topic] [Next Topic] [Search] [Search Results] [Prev Topic Match] [Next Topic Match] [Notes] [List Notes] [Print] [Download] [Help]

4.2.3.5 Changing Program Function (PF) Key Definitions



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 periods immediately following the numeric symbolic arguments are used 
   to distinguish the arguments from the characters immediately following 
   them in the definition-text-string. The periods are not needed if the 
   character after the argument is not a digit. 


   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. 


PF1/13
PF1/13 is not defined in the default environment. If you press this key, Session Manager does the following:




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) 


PF2/14
PF2/14 accepts the value typed on the screen for the scroll amount field and places this value highlighted in the EXTRA3 stream. It then changes the definitions of the scroll PF keys (PF7/19, PF8/20, PF10/22, and PF11/23) to do the following:




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 


PF3/15
PF3/15 is not defined in the default environment. If you press this key, Session Manager does the following:




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) 


PF4/16
PF4/16 is not defined in the default environment. If you press this key, Session Manager does the following:




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) 


PF5/17
PF5/17 is the find/repeat find key. It does the following:




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(&) 


PF6/18
PF6/18 changes the CURRENT window to display either the last two lines in the TSOOUT stream or the last two lines in the TSOIN stream. Initially, the window displays the last two lines in the TSOOUT stream. When you press PF6/18, it does the following:




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 


PF7/19
PF7/19 does the following:




The commands that define PF7/19 are:


               CHANGE.PFK 7 'SCROLL.BACKWARD AMOUNT(HALF); 
                              CHANGE.TERMINAL CNTL(0); 
                              SCROLL.ABSOLUTE 8 LVALUE' SMIN 


PF8/20
PF8/20 does the following:




The commands that define PF8/20 are:


               CHANGE.PFK 8 'SCROLL.FORWARD AMOUNT(HALF); 
                              CHANGE.TERMINAL CNTL(0); 
                              SCROLL.ABSOLUTE 8 LVALUE' SMIN 


PF9/21
PF9/21 does the following:




The commands that define PF9/21 are:


               CHANGE.PFK 9 'SCROLL.OLDEST; 
                             CHANGE.TERMINAL CNTL(0); 
                             SCROLL.ABSOLUTE 8 LVALUE' 
                             SMIN 


PF10/22
PF10/22 does the following:




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 


PF11/23
PF11/23 does the following:




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 


PF12/24
PF12/24 does the following:




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 




[Prev Topic] [Next Topic] © Copyright IBM Corp. 1988, 2000

IBM BookManager® BookServer Copyright 1989, 1999 IBM Corporation. All rights reserved.


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 ]