The popular SAS terms you need to know how they defined before you write your first macro. SAS macros are so popular in Data analysis. The below terms used in the flow of SAS macro processing.
input stack – Holds a SAS program after it is submitted and before it is processed by the word scanner.
word scanner – Scans the text it takes from the input stack and breaks the text into tokens. Determines the destination of the token: DATA step compiler, macro processor, etc.
token – Fundamental unit in the SAS language. SAS statements must be broken down into tokens, or tokenized, before the statements can be compiled. Tokens are the actual words in the SAS statements as well as the literal strings, numbers, and symbols.
compiler – Checks the syntax of tokens received from the word scanner. After the compiler completes checking the syntax, it translates the tokens into a form for execution.
macro processor – Processes macro language references and statements.
macro trigger – The symbols & and %, when followed by a letter or underscore, that signal the word scanner to transfer what follows to the macro processor.
macro symbol table– The area in memory where macro variables and their associated values are stored. (If option MSYMTABMAX is set to 0, SAS writes macro symbol tables to disk.)
- SAS terms to know before you write your first macro
- SAS statements handy list always need
- SAS splitting input file logic you need