8.48 DEFSYM (Define a symbol)

8.48.1 Function

The DEFSYM command defines symbol ‘symbol’ as to contain value ‘value’. The symbol can then be the
object of a substitution for later panel commands. If the value contains blanks or spaces then it must be
enclosed within quotes or apostrophes. See chapter “Symbol Substitutions” for a more in-depth discus-
sion on this feature.

8.48.2 Syntax

Descriptive

symbol []]

Diagram

¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ



symbol ¬¬¬§¬¬¬¬¬¬¬¬¬¬¬¬¬«




8.48.3 Parameter

symbol

The name of a symbol. If no symbol name (and optionally a value) is given then all
previously defined symbols are listed.

value

The value that is assigned to the symbol. If the value is omitted then the previously
defined symbol is cleared, the symbol itself is not deleted.

8.48.4 Examples

Example 1:

List all defined symbols.

HHC00013I Herc command: 'defsym'

HHC02199I Symbol VERSION '3.0.7.6879'

HHC02199I Symbol BDATE 'Oct 12 2010'

HHC02199I Symbol BTIME '18:23:14'

HHC02199I Symbol HOSTNAME 'GOOFY'

HHC02199I Symbol HOSTOS 'Windows'

HHC02199I Symbol HOSTOSREL '6.1.7600'

HHC02199I Symbol HOSTOSVER 'NT '

HHC02199I Symbol HOSTARCH 'i686'

HHC02199I Symbol HOSTNUMCPUS 'MP=8'

HHC02199I Symbol MODNAME 'hercules.exe'

HHC02199I Symbol MODPATH 'D:\Hercules\'

HHC02199I Symbol PF01 'SUBST IMMED herc help &0'

HHC02199I Symbol PF11 'IMMED herc devlist TAPE'

HHC02199I Symbol PF10 'SUBST DELAY herc devinit &*'

HHC02199I Symbol CUU '$(CUU)'

HHC02199I Symbol CCUU '$(CCUU)'

HHC02199I Symbol DASDPATH 'D:/MVS/DASD'

HHC02199I Symbol READERPATH 'D:/MVS/READER'

HHC02199I Symbol PRINTPATH 'D:/MVS/PRINTER'

HHC02199I Symbol PUNCHPATH 'D:/MVS/PUNCH'

HHC02199I Symbol CSS '0'

HHC02199I Symbol SUBCHAN '0008'

Figure 100: DEFSYM command (list all symbols)

Example 2:

Define new symbol (and list the symbols afterwards).

HHC00013I Herc command: 'defsym TAPEDIR "D:\MVS\TAPE"'

HHC00013I Herc command: 'defsym'

HHC02199I Symbol VERSION '3.0.7.6879'

HHC02199I Symbol BDATE 'Oct 12 2010'

HHC02199I Symbol BTIME '18:23:14'

.

several lines not displayed

.

HHC02199I Symbol SUBCHAN '0008'

HHC02199I Symbol TAPEDIR 'D:\MVS\TAPE'

Figure 101: DEFSYM command (define new symbol)

Example 3:

Clear defined symbol (and list the symbols afterwards).

HHC00013I Herc command: 'defsym TAPEDIR'

HHC00013I Herc command: 'defsym'

HHC02199I Symbol VERSION '3.0.7.6879'

HHC02199I Symbol BDATE 'Oct 12 2010'

HHC02199I Symbol BTIME '18:23:14'

.

several lines not displayed

.

HHC02199I Symbol SUBCHAN '0008'

HHC02199I Symbol TAPEDIR ''

Figure 102: DEFSYM command (clear defined symbol)

Previous Page Next Page