The gtmroutines environment variable specifies a directory search list of possible locations for M routines. This search enables GT.M to find the routine (program) you want to run even if it is not in your current working directory. Fidelity Information Services recommends the inclusion of $gtm_dist in the list of directories specified in gtmroutines permits access to the Global Directory Editor (GDE) and to utility routines supplied with GT.M.
The following is an example of a gtmroutines definition, assuming that $ gtm_dist has been defined:
$ gtmroutines=". $gtm_dist"
$ export gtmroutines
This specifies that GT.M first search for a routine in the current directory, then in the distribution directory (included in the list because it contains the percent routines). You will probably want the search list to contain these at a minimum; in addition, you may also want to include other directories. For details on gtmroutines syntax, refer to the "$ZROUTINES" section of the "Intrinsic Special Variables" chapter in the GT.M Programmer's Guide.