Defining PFKs using the CONTROL command

Use the CONTROL N,PFK= command to change the definition for PFKs. This command performs three tasks:
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:

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='')