Example of a Basic Mapping

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. More than one NAME may map to a region.

  • ADD region cusreg, if it does not exist.

        
                         
        GDE> ADD/REGION CUSREG/DYNAMIC=CUSSEG
        
        
        
                      

    This creates the REGION CUSREG and connects it to the SEGMENT CUSREG. The /DYNAMIC qualifier is required.

  • ADD segment cusreg, if it does not exist, and link it to a file.

        
                         
        GDE> ADD/SEG CUSSEG/FILE=CUS
        
        
        
                      

    This creates the SEGMENT CUSSEG and connects it to the file CUS.

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, the system performs an automatic verification. If successfully confirmed, the mappings and database specifications become part of the Global Directory and are available for access by processes, utilities, and the run-time system.