Symbol name
Assigned value
Example string
BDATE
Hercules build date
‘Sep 22 2010’
BTIME
Hercules build time
’19:13:03’
CUU
3 digit device number, upper case hexadecimal digits
‘12A’
CUUU
4 digit device number, upper case hexadecimal digits
‘012A’
cuu
3 digit device number, lower case hexadecimal digits
‘12a’
cuuu
4 digit device number, lower case hexadecimal digits
‘012a’
DEVN
4 digit device number, upper case hexadecimal digits
‘012A’
HOSTARCH
Host system architecture
‘i686’
HOSTNAME
Name of the host system
‘GOOFY’
HOSTNUMCPUS
The number of CPUs of the host system
‘MP=8’
HOSTOS
Host operating system
‘Windows’
HOSTOSREL
Host operating system release
‘6.1.7600’
HOSTOSVER
Host operating system version
‘7 Ultimate Edition, 64-bit’
MODNAME
Module name of the startup program
‘hercules.exe’
MODPATH
Path name of the startup program
‘D: \Hercules\’
VERSION
Hercules version
‘ 3.07’
Table 3: Predefined symbols
4.7.3.2 Environment variables
If a symbol is not explicitly defined by a DEFSYM statement and an environment variable by the same
name exists, then the string contents of that environment variable will be used for substitution.
4.7.3.3 Undefined symbols
If a symbol is not defined by an explicit DEFSYM, is not an automatically generated symbol or is not an
environment variable, an empty string will be substituted.
4.7.4 Escaping substitution, recursion
To specify the '$’ string without incurring substitution an additional '$' sign should be used. For example,
$$(FOO) will not be substituted. If substitution is required but the preceding text is to contain a '$' sign as
the very last character then $$$(FOO) would be specified. Thus if symbol FOO contains "BAR", then
$$(FOO) will remain "$$(FOO)" while $$$(FOO) will become "$BAR". Substitution is not recursive, only
one substitution pass is made.