Macrocosm Stata Class Notes Macrocosm Introduction Macros are named entities that can contain strings or numeric values. The definition is really much more confusing than the concept which will be made clear through examples. The major difference between them is that local macros exist and are accessible only within the procedure where they were created.
Global macros exist and are accessible across all procedures.
All macros, global and local, have macro names and macro contents. For the moment, we will focus on local marcos. Using Macros Interactively You define a local macro using the local command. We can view the contents using the macro list command. The underscore in front of the macro name indicates that the macro is a local macro.