Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
dcl_symbols [2018/10/03 22:48] – add content lricker | dcl_symbols [2018/10/03 22:49] – tweaks lricker |
---|
DCL variables have **scope** (visibility): | DCL variables have **scope** (visibility): |
| |
* Global symbols, created/assigned with the **''==''** (or '':=='') operator, are visible at any level, including on the command line (level 0) and within executing command files (scripts, level 1 and higher/deeper). | * Global symbols, created/assigned with the **''==''** (or **'':==''**) operator, are visible at any level, including on the command line (level 0) and within executing command files (scripts, level 1 and higher/deeper). |
* Local symbols, created/assigned with the ''='' (or '':='') operator, usually used and visible only within command files where created (and in nested command files). | * Local symbols, created/assigned with the **''=''** (or **'':=''**) operator, usually used and visible only within command files where created (and in nested command files). |
| |
A DCL symbol can be used as a **command alias** -- the global variable's value is a string of characters, the first element or "word" of which is an executable DCL command; for example: | A DCL symbol can be used as a **command alias** -- the global variable's value is a string of characters, the first element or "word" of which is an executable DCL command; for example: |