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, the default character string value (uppercased) of the environment symbol is used including its leading dot.
Note |
You can place entries in the .context~package~local, .local and .environment directories for programs to use, but .local should be preferred over .environment to avoid accidentally overwriting system-defined values. 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. |
/* establish a settings directory in the local environment directory*/ |
.local~setentry("my.settings", .directory~new) |