Previous Topic: KEYS Statement UsageNext Topic: LOADLIST Statement—Define Load Lists


Example: KEYS Statement

Defining a Keys Table with an Application Override

The following statement creates the keys table COMMTAB, which establishes shared control-key assignments for the IDD and LINEMODE applications and, for IDD, redefines the CLEAR key to invoke function 15:

ADD KEYS FOR TABLE COMMTAB
      PF7 = FUNCTION 2
      PF8 = FUNCTION 1
      CLEAR = FUNCTION 4
    FOR APPLICATION LINEMODE
    FOR APPLICATION IDD
      CLEAR = FUNCTION 15.

Clearing an Application-Specific Control-Key Assignment

The following statement modifies the keys table COMMTAB, clearing the control-key assignment for IDD:

MODIFY KEYS FOR TABLE COMMTAB
    FOR APPLICATION IDD
      NULL.

Disassociating an Application from a Keys Table

The following statement modifies the keys table COMMTAB, removing the LINEMODE application from the table:

MODIFY KEYS FOR TABLE COMMTAB
    FOR APPLICATION LINEMODE
      DELETE.

Deleting a Keys Table

The following statement deletes the keys table COMMTAB from the current system definition:

DELETE KEYS FOR TABLE COMMTAB.