The SETGD command closes out edits on one Global Directory and opens edits on another.
The format of the SETGD command is:
SE[TGD] /F[ILE]=file-spec [/Q[UIT]]
The /FILE=file-spec specifies a different Global Directory file. When you provide a partial file-specification, GDE uses the current default directory and defaults the type to .GLD.
The /QUIT qualifier specifies that any changes made to the current Global Directory are not written and will be lost when you change Global Directories.
SETGD changes the Global Directory that GDE is editing. If the current Global Directory has not been modified, or the /QUIT qualifier appears in the command, the change simply occurs. However, if the current Global Directory has been modified, GDE verifies the Global Directory, and if the verification is successful, writes that Global Directory. If the verification is not successful, the SETGD fails.
Example:
GDE> SETGD /F=TEMP
This changes the Global Directory being edited to TEMP.