Use the CONTROL N,PFK= command to change the definition for PFKs.
This command performs three tasks:
- Assigns one or more commands to a PFK
- Assigns one or more other PFKs to a PFK
- Assigns a PFK table to your console.
With the CONTROL N,PFK= command you can also determine whether conversational or nonconversational mode is to be
in effect for the commands defined to the PFK. Nonconversational mode
is the default. For example, if you define PFK 5 as follows:
CONTROL N,PFK=(5,CMD='D U,L=CON9A'),CON=N
pressing PFK 5 has the same effect as typing DISPLAY
U,L=CON9A and pressing the ENTER key.
On the other hand, if you specify conversational mode by entering:
CONTROL N,PFK=(5,CMD='D U,L=CON9A'),CON=Y
pressing PFK 5 causes the command D U,L=CON9A to appear in the
entry area but no enter action takes place. You can change, enter,
or cancel the command according to your requirements.
The system does not accept PFK assignments that may result in an
endless loop. Examples of commands that the system will not accept
are:
- You cannot assign a PFK to itself. For
example, the system does not accept CONTROL N,PFK=(9,KEY=9).
- If a PFK is being assigned a list of PFKs (that is, a key list),
that PFK cannot appear in the key list for another
PFK. For example, if PFK 5 is already associated with keys 3 and
4, the system does not accept CONTROL N,PFK=(6,KEY=5,8).
- If a PFK is already in a key list, you cannot assign
a key list to that PFK. For example, if key 4 is associated with
keys 5 and 6, the system does not accept CONTROL N,PFK=(5,KEY=7,8).
Remember that the assignment of the command to the PFK through
the CONTROL command lasts only for the duration of the IPL.
Example 1:
If PFK 3 is associated with commands SET OPT=PM and
SEND 14,BRDCST, and PFK 4 is associated with the command START GTF,MODE=INT,BUF=387,TIME=YES,DEBUG=YES,
you can associate all three of these commands with PFK 5 by entering:
CONTROL N,PFK=(5,KEY=3,4),CON=Y
The commands associated with PFK 5 are now:
SET OPT=PM
SEND 14,BRDCST
START GTF,MODE=INT,BUF=387,TIME=YES,DEBUG=YES
The system schedules the commands in that order, but might not
execute them in that order.
Example 2:
To remove a definition previously set for PFK 5, leaving PFK 5
undefined, enter:
CONTROL N,PFK=(5,CMD='')