The Default Search Order for Environment Objects

When you use an environment symbol, REXX performs a series of searches to see if the environment symbol has an assigned value. The search locations and their ordering are:

If an entry is not found for an environment symbol, then the default character string value is used.

Note: You can place entries in both the .local and .environment directories for programs to use. To avoid conflicts with future REXX defined entries, it is recommended that entries you place in either of these directories include at least one period in the entry name.

Example:

/* establish a global settings directory */.local~setentry('MyProgram.settings', .directory~new)


[Back: Built-In Environment Objects]
[Next: Determining the "Scope" of Methods and Variables]