Skip to main content

Forms of Extended Global References

Forms of Extended Global References

There are two forms of extended references:

  • Explicit namespace reference — You specify the name of the namespace where the global is located as part of the syntax of the global reference.

  • Implied namespace reference — You specify the directory and, optionally, the system name as part of the syntax of the global reference. In this case, no global mappings apply, since the physical dataset (directory and system) is given as part of the global reference.

The use of explicit namespaces is preferred, because this allows for redefinition of logical mappings externally, as requirements change, without altering your application code.

InterSystems IRIS supports two syntaxes for extended references:

  • Bracket syntax, which encloses the extended reference with square brackets ([ ]).

  • Environment syntax, which encloses the extended reference with vertical bars (| |).

Note:

The examples shown here use the Windows directory structure. In practice, the form of such references is operating-system dependent.

FeedbackOpens in a new tab