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.
1.input stack – Holds a SAS program after it is submitted and before it is processed by the word scanner.
2. 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.
3. 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.
4. 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.
5. macro processor – Processes macro language references and statements.
6. 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.
7. 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.)
You must be logged in to post a comment.