HP OpenVMS Systems Documentation
HP OpenVMS DCL Dictionary
Displays the value of the specified symbol.
SHOW SYMBOL [symbol-name]
The SHOW SYMBOL command searches for the specified symbol name in several places. First, it looks in the local symbol table of the current command level. Next, it searches the local symbol tables of preceding command levels (unless a wildcard was specified). Last, it searches the global symbol table. The SHOW SYMBOL command displays the first match it finds.
$ SHOW SYMBOL PURGE PURGE = "PURGE/KEEP=2"
The SHOW SYMBOL command in this example displays the current value of the symbol name PURGE. The command interpreter first searches the local symbol table for the current command level, then local symbol tables for preceding command levels, and finally the global symbol table. The single equal sign (=) following PURGE means it is a local symbol.
$ SHOW SYMBOL/GLOBAL/ALL $FACILITY == "%X00000000" $IDENT == "%X00000000" $RESTART == "FALSE" $SEVERITY == "1" $STATUS == "%X10000001" LOG == "@LOG" TIME == "SHOW TIME"
The SHOW SYMBOL command in this example displays all the symbols defined in the global symbol table. Note that the symbols $FACILITY, $IDENT, $RESTART, $SEVERITY, and $STATUS, which are maintained by the system, are also displayed.
$ SHOW SYMBOL/LOCAL TIME %DCL-W-UNDSYM, undefined symbol
The SHOW SYMBOL command in this example searches only the local symbol table for the symbol TIME. The response indicates that TIME currently has no value.