To complete this procedure, you must have already opened a Global Directory.
ADD a new global variable name.
GDE> add -name cus -region=cusreg
This maps the global name cus to the region cusreg.
ADD region cusreg, if it does not exist.
GDE> add -region cusreg -d=cusseg
This creates the region cusreg and connects it to the segment cusseg. -d[ynamic] is a required qualifier that takes the associated segment-name as a value.
ADD segment cusreg, if it does not exist, and link it to a file.
GDE> add -segment cusseg -file=cus
This creates the segment cusseg and connects it to the file cus.dat.
To review the information you have added to the Global Directory, enter the command SHOW.
To perform a base consistency check in the configuration, enter the command VERIFY.
To exit the Global Directory and save your changes, enter the command EXIT. At this point, GDE performs an automatic verification. If successfully confirmed, the mappings and database specifications become part of the Global Directory, available for access by processes, utilities, and the run-time system.
Only MUPIP CREATE uses the database specifications; run-time processes and other utility functions use only the map and ignore the other information in a global directory.