5.24 DEFSYM (Define a symbol)
5.24.1 Function
Defines symbol ‘symbol’ is to contain value ‘value’. The symbol can then be the object of a substitution
used later in the configuration file or for console commands. If value contains blanks or spaces it must be
enclosed within quotes or apostrophes. See chapter “Symbol Substitutions” for a more in-depth discus-
sion on this feature.
Substitution is available in configuration statements, meaning it is possible to perform substitution in the
DEFSYM statement itself. However, symbols are always defined as the last step in the process, so
attempting to self-define a symbol will result in an empty string.
5.24.2 Syntax
Descriptive
symbol
Diagram
symbol ¬¬¬ ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ÊÍ
5.24.3 Parameter
symbol
The name of a symbol.
value
The value that is assigned to the symbol.
5.24.4 Examples
Example 1:
Define a symbol “TAPEDIR” with the value “/home/hercules/tapes”.
DEFSYM TAPEDIR "/home/hercules/tapes"