how we can call macros with in data step?
Answer Posted / net_ameen
Call Execute() is used to call Macro aswellas call macro variable eg: Call execute ('%macroname');
Call execute ('¯ovarname');
Call Symput() is used to create a Global macro variable from within a datastep.
Symget() is used to call a macro variable and assign its value to a datastep variable.
%include() is not a macro statement yet used to call either a macro, extn file containing codes or proc/datastep within a program to be executed together.
Resolve() is used to resolve macro variables created thru call symput within same datastep.
Hope this helps. If any argument pls post.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is program data vector? : Sas-administrator
What are pdv and it functions?
What do you know about symput and symget?
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
How to limit decimal places for the variable using proc means?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
Mention what are the data types does SAS contain?
Difference between informat and format?
What is the difference between match merge and one to one merge?
What is the purpose of _character_ and _numeric_?
What is the basic structure of the SAS base program?
Do you need to know if there are any missing values?
how does sas handle missing values in sort order? : Sas programming
What is program data vector (pdv)?