4.7.5 Examples
Example 1:
The DEFSYM configuration statement
DEFSYM TAPEDIR "/home/hercules/tapes"
and the symbol substitution in the device definition
0380 3420 $(TAPEDIR)/scratch.aws
results in the following device definition used by Hercules
0380 3420 /home/hercules/tapes/scratch.aws
Example 2:
The DEFSYM configuration statement
DEFSYM DASDPATH "D:/HERCULES/DASD"
and the following symbol substitution in the device configuration
0148 3350 $(DASDPATH:=D:/MVS/DASD)/MVSRES.CKD
results in the following device definition with resolved DASDPATH symbol
0148 3350 D:/HERCULES/DASD/MVSRES.CKD
If however there is no symbol DASDPATH (the DEFSYM statement is missing) then the symbol in the
device definition is resolved with the defined default
0148 3350 D:/MVS/DASD/MVSRES.CKD
Example 3:
The device definition using the predefined symbol "CUUU"
0148.5 3350 D:/MVS/DASD/VOLSER.$(CUUU)
results in the following device definitions used by Hercules
0148 3350 D:/MVS/DASD/VOLSER.0148
0149 3350 D:/MVS/DASD/VOLSER.0149
014A 3350 D:/MVS/DASD/VOLSER.014A
014B 3350 D:/MVS/DASD/VOLSER.014B
014C 3350 D:/MVS/DASD/VOLSER.014C