Defining PFKs using PFK tables

You define a console’s PFKs by activating a PFK table — a table that your installation has defined. The PFK table resides, optionally with other PFK tables, in a PFKTABxx parmlib member. The entries in this table:

Entries in the PFK table also determine whether conversational or nonconversational mode is to be in effect for a command defined to a PFK. In nonconversational mode, the commands associated with a key are entered immediately when you press the key. In conversational mode, pressing a PFK causes the command to appear in the entry area, but no enter action takes place. You can change, enter, or cancel the command according to your requirements.

In conversational mode, the cursor normally appears under the third non-blank character when the command is in the entry area. If you want the cursor to appear in a different location, when you define the command, type an underscore before the character under which the cursor is to appear. The system deletes the space occupied by the underscore in the actual command. For example, if you add the following entry to a PFK table:
PFK(5) CMD('D U,L=_XXX') CON(Y)
pressing PFK 5 causes the following to appear in the entry area:
D U,L=XXX

If you want an underscore to appear in the command, code two consecutive underscores. The system will treat them as a single underscore, and will not use them for cursor placement. Example:

If the PRKTAB table contains:

        PFK(17) CMD('E _XXXXXXXX,SRVCLASS=BAT__HI'),CON(Y)

when you press PFK17, the entry area will contain:

        E XXXXXXXX,SRVCLASS=BAT_HI

with the cursor under the first X.

Selector pens also use the definitions in PFK tables.

You can use some MVS™ commands to display information about the PFKs at your console, or to change the PFKs that are available for your consoles. The following commands relate to the previous example: