Deletes key definitions that have been established by the
DEFINE/KEY command. The /KEY qualifier is required.
Format
DELETE/KEY [key-name]
1 – Parameter
key-name
Specifies the name of the key to be deleted. This parameter is
incompatible with the /ALL qualifier.
2 – Qualifiers
2.1 /ALL
Deletes all key definitions in the specified state; the default
is the current state. If you use the /ALL qualifier, do not
specify a key name. Use the /STATE qualifier to specify one or
more states.
2.2 /LOG
/LOG (default)
/NOLOG
Controls whether messages are displayed indicating that the
specified key definitions have been deleted.
2.3 /STATE
/STATE=(state-name[,...])
/NOSTATE (default)
Specifies the name of the state for which the specified key
definition is to be deleted. The default state is the current
state. If you specify only one state name, you can omit the
parentheses. State names can be any alphanumeric string.
3 – Examples
1.$ DELETE/KEY/ALL
%DCL-I-DELKEY, DEFAULT key PF1 has been deleted
%DCL-I-DELKEY, DEFAULT key PF2 has been deleted
%DCL-I-DELKEY, DEFAULT key PF3 has been deleted
%DCL-I-DELKEY, DEFAULT key PF4 has been deleted
$
In this example, the user has defined keys PF1 to PF4 in
the default state. The DELETE/KEY command deletes all key
definitions in the current state, which is the default state.
2.$ DEFINE/KEY PF3 "SHOW TIME" /TERMINATE
%DCL-I-DEFKEY, DEFAULT key PF3 has been defined
$ <PF3>
$ SHOW TIME
14-DEC-2001 14:43:59
.
.
.
$ DELETE/KEY PF3
%DCL-I-DELKEY, DEFAULT key PF3 has been deleted
$ <PF3>
$
In this example, the DEFINE/KEY command defines the PF3 key on
the keypad as SHOW TIME. To delete the definition for the PF3
key, use the DELETE/KEY command. When the user presses PF3,
only the system prompt is displayed.