Symbol “Scope”
Determine symbol scope for the current
$ SET SYMBOL/SCOPE=(keyword(s))
Can help prevent problems due to symbols defined
locally at another procedure depth or globally.
Notes:
Controlling symbol scope can help control confusion when a symbol name is used in more than one nested procedure.
When symbol scope is set to NOLOCAL, local symbols from lesser procedure depths are “invisible” to the current procedure depth all “greater” depths.
When symbol scope is set to NOGLOBAL, global symbols are “invisible” to the current procedure depth all “greater” depths.