GT.M identifies the current Global Directory by referring to the logical name GTM$GBLDIR. GDE, MUPIP, LKE, DSE, and the GT.M run-time system use this logical name. Except when replication is in use, an M program can bypass the normal Global Directory and force access to a specific Global Directory or a specific database file (for a $ZGBLDIR or the || or {} extended global syntax). When replication is in use, bypassing the normal Global Directory can lead to unexpected results. This is neither recommended or supported by Fidelity.
If you maintain multiple global directories, define GTM$GBLDIR to the Global Directory you currently want to use. The system manager normally defines GTM$GBLDIR in a GROUP or SYSTEM table. The default installation procedure creates a startup command procedure, which assigns GTM$GBLDIR the name MUMPS.GLD. You can also define GTM$GBLDIR in your LOGIN.COM file.
$ DEFINE GTM$GBLDIR DISK:PROD.GLD
For more information on defining logical names in LOGIN.COM, refer to the OpenVMS User's Manual.
$ gtmgbldir=prod.gld
$ export gtmgbldir