SAS terms to know before you write your first macro

SAS macro terms

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.

Image result for sas macro processing flow image
SAS macro processing steps

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.)

Also read

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.

Start Discussion

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s