Previous | Contents | Index |
Deletes one or all symbol definitions from a local or global symbol table. The /SYMBOL qualifier is required.
DELETE/SYMBOL [symbol-name]
symbol-name
Specifies the name of the symbol to be deleted. A name is required unless the /ALL qualifier is specified. The symbol-name parameter is incompatible with the /ALL qualifier. Symbol names can have from 1 to 255 characters. By default, the DELETE/SYMBOL command assumes that the symbol is in the local symbol table for the current command procedure.
The DELETE/SYMBOL command deletes a symbol definition from a symbol table. If you do not specify either the global or local symbol table, the symbol is deleted from the local table. If you specify both the /GLOBAL and /LOCAL qualifiers, only the last specified qualifier is accepted. The /SYMBOL qualifier must always immediately follow the DELETE command name.
/ALL
Deletes all symbols from the specified table. If you do not specify either the /LOCAL or the /GLOBAL qualifier, all symbols defined at the current command level are deleted. The /ALL qualifier is incompatible with the symbol-name parameter./GLOBAL
Deletes the symbol from the global symbol table of the current process./LOCAL (default)
Deletes the symbol from the local symbol table of the current process./LOG
/NOLOG (default)
Controls whether an informational message listing each symbol being deleted is displayed.
#1 |
---|
$ DELETE/SYMBOL/ALL |
In this example, the DELETE/SYMBOL command deletes all symbol definitions at the current command level.
#2 |
---|
$ DELETE/SYMBOL/LOG KUDOS %DCL-I-DELSYM, LOCAL symbol KUDOS has been deleted |
In this example, the DELETE/SYMBOL command deletes the symbol KUDOS from the local symbol table for the current process. In addition, the /LOG qualifier causes an informational message, listing the symbol being deleted, to be displayed.
#3 |
---|
$ DELETE/SYMBOL/GLOBAL PDEL |
In this example, the DELETE/SYMBOL command deletes the symbol named PDEL from the global symbol table for the current process.
Previous | Next | Contents | Index |