Deletes a symbol definition that was established with the DEFINE command. Format DELETE [symbol-name[, . . . ]]
1 – Parameters
symbol-name Specifies a symbol whose definition is to be deleted from the DEFINE symbol table. Do not use the asterisk (*) wildcard character. Instead, use the /ALL qualifier. Do not specify a symbol name with /ALL. If you use the /LOCAL qualifier, the symbol specified must have been previously defined with the DEFINE/LOCAL command. If you do not specify /LOCAL, the symbol specified must have been previously defined with the DEFINE command without /LOCAL.
2 – Qualifiers
2.1 /ALL
Deletes all global DEFINE definitions. Using /ALL/LOCAL deletes all local DEFINE definitions associated with the current command procedure (but not the global DEFINE definitions).
2.2 /LOCAL
Deletes the (local) definition of the specified symbol from the current command procedure. The symbol must have been previously defined with the DEFINE/LOCAL command.
3 – Description
The DELETE command deletes either a global DEFINE symbol or a local DEFINE symbol. A global DEFINE symbol is defined with the DEFINE command without the /LOCAL qualifier. A local DEFINE symbol is defined in a debugger command procedure with the DEFINE/LOCAL command, so that its definition is confined to that command procedure. Related commands: DECLARE DEFINE SHOW DEFINE SHOW SYMBOL/DEFINED
4 – Examples
1.DBG> DEFINE X = INARR, Y = OUTARR DBG> DELETE X,Y In this example, the DEFINE command defines X and Y as global symbols corresponding to INARR and OUTARR, respectively. The DELETE command deletes these two symbol definitions from the global symbol table. 2.DBG> DELETE/ALL/LOCAL This command deletes all local symbol definitions from the current command procedure.
5 /KEY
Deletes a key definition that was established with the DEFINE/KEY command or, by default, by the debugger. NOTE This command is not available in the VSI DECwindows Motif for OpenVMS user interface to the debugger. Format DELETE/KEY [key-name]
5.1 – Parameters
key-name Specifies a key whose definition is to be deleted. Do not use the asterisk (*) wildcard character. Instead, use the /ALL qualifier. Do not specify a key name with /ALL. Valid key names are as follows: Key LK201 Name Keyboard VT100-type VT52-type PF1 PF1 PF1 Blue PF2 PF2 PF2 Red PF3 PF3 PF3 Black PF4 PF4 PF4 KP0-KP9 Keypad 0-9 Keypad 0-9 Keypad 0-9 PERIOD Keypad Keypad period (.) period (.) COMMA Keypad comma Keypad comma (,) (,) Keypad minus (-)\) ENTER Enter ENTER ENTER ENTER Enter ENTER ENTER E1 Find E2 Insert Here E3 Remove E4 Select E5 Prev Screen E6 Next Screen HELP Help DO Do F6-F20 F6-F20
5.2 – Qualifiers
5.2.1 /ALL
Deletes all key definitions in the specified state. If you do not specify a state, all key definitions in the current state are deleted. To specify one or more states, use /STATE=state-name.
5.2.2 /LOG
/LOG (default) /NOLOG Controls whether a message is displayed indicating that the specified key definitions have been deleted. The /LOG qualifier (which is the default) displays the message. The /NOLOG qualifier suppresses the message.
5.2.3 /STATE
/STATE=(state-name [, . . . ]) /NOSTATE (default) Selects one or more states for which a key definition is to be deleted. The /STATE qualifier deletes key definitions for the specified states. You can specify predefined key states, such as DEFAULT and GOLD, or user-defined states. A state name can be any appropriate alphanumeric string. The /NOSTATE qualifier deletes the key definition for the current state only. By default, the current key state is the DEFAULT state. The current state can be changed with the SET KEY/STATE command, or by pressing a key that causes a state change (a key that was defined with DEFINE/KEY/LOCK_STATE/SET_STATE).
5.3 – Description
The DELETE/KEY command is like the DCL command DELETE/KEY. Keypad mode must be enabled (SET MODE KEYPAD) before you can use this command. Keypad mode is enabled by default. Related commands: DEFINE/KEY (SET,SHOW) KEY
5.4 – Examples
1.DBG> DELETE/KEY KP4 %DEBUG-I-DELKEY, DEFAULT key KP4 has been deleted This command deletes the key definition for KP4 in the state last set by the SET KEY command (by default, this is the DEFAULT state). 2.DBG> DELETE/KEY/STATE=(BLUE,RED) COMMA %DEBUG-I-DELKEY, BLUE key COMMA has been deleted %DEBUG-I-DELKEY, RED key COMMA has been deleted This command deletes the key definition for the COMMA key in the BLUE and RED states.