global
The same idea as local, visible everywhere.
What we have
$nameand${name}expansion
Coming later
- the extended macro functions
You may shorten it to glo.
How you write it
global name value
Square brackets mean optional. A vertical bar means choose one.
What it does
Stored the same way, fetched with a $ in front: $controls. A local belongs to the do-file that made it; a global is visible to everything afterwards.
Prefer local unless you genuinely need the reach — a global changed in one file and used in another is hard to follow.
Try it
. global controls "age education"
. display "$controls"
age education