<<< Click here to go back
SAS Macro is also an Indirect way to write a Code which is quite similar to what we saw in the previous examples.
Let's understand with a very basic macro, we would delve into its details later.
Suppose we write :
%let name = Jack ;
We create a macro variable "name" and assign a value "Jack" to it.
Now when I use following statement :
I and &name. are playing chess.
It means that I and Jack are are playing chess.
Here "%" and "&" are macro triggers, which we would cover in the article.
1. Macro variable
2. Macro itself
Now we would understand these one by one. Let's understand Macro variables first.
Let's understand with a very basic macro, we would delve into its details later.
Suppose we write :
%let name = Jack ;
We create a macro variable "name" and assign a value "Jack" to it.
Now when I use following statement :
I and &name. are playing chess.
It means that I and Jack are are playing chess.
Here "%" and "&" are macro triggers, which we would cover in the article.
All the SAS macro programming can be covered into two parts :
1. Macro variable
2. Macro itself
Now we would understand these one by one. Let's understand Macro variables first.
No comments:
Post a Comment
Do provide us your feedback, it would help us serve your better.