Example:
$ DEFINE GTM$ROUTINES "[JONES],[SMITH]" $ GTM GTM> WRITE $ZROUTINES "[JONES],[SMITH]" GTM> SET $ZRO="[JONES.UTL],[SMITH.UTL]" GTM> WRITE $ZRO [JONES.UTL],[SMITH.UTL] GTM> HALT $ SHOW LOGICAL GTM$ROUTINES "GTM$ROUTINES" = "[JONES],[SMITH]"(LNM$PROCESS_TABLE)
This defines the logical name, GTM$ROUTINES. Upon entering GT.M Direct Mode $ZROUTINES has the value supplied by GTM$ROUTINES. The SET command changes the value. When the GT.M image terminates, the DCL command SHOW demonstrates that GTM$ROUTINES has not been modified by the M SET command.
Example:
GTM> SET $ZRO="[],[SMITH],MYLIB.OLB"
This sets $ZROUTINES to a list containing two directories and an object library in the process current default directory.
Example:
GTM> SET $ZRO="[SMITH]/SRC=([SMITH.TAX],[SMITH.FICA])"
This specifies that GT.M should search the directory [SMITH] for object files and the directories [SMITH.TAX] and [SMITH.FICA] for source files. Note that in this example, GT.M does not search [SMITH] for source files.
Example:
GTM> SET $ZRO="[SMITH]/SRC=([SMITH],[SMITH.TAX],[SMITH.FICA])"
This specifies that GT.M should search the directory [SMITH] for object files and the directories [SMITH.TAX] and [SMITH.FICA] for source files. Note that the difference between this example and the previous one is that in this example GT.M searches [SMITH] for both object and source files.
Example:
GTM> SET $ZRO="[SMITH],[SMITH.TAX]/NOSRC,[SMITH.FICA]"
This specifies that GT.M should search [SMITH] and [SMITH.FICA] for object and source files. However, because the /NOSRC qualifier indicates directories searched only for object files, GT.M does not search [SMITH.TAX] for source files.
Omission of the /SRC= and /NOSRC indicates GT.M can search the directory for both source and object files. $ZROUTINES="[SMITH]" is equivalent to $ZROUTINES="[SMITH]/SRC=[SMITH]".