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 areas of SAS are you most interested in?
How would you define the end of a macro?
What are the 3 components in sas programming?
for what purpose would you use the retain statement? : Sas programming
hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?
How sas treats the dsd delimiters?
Describe a time when you were really stuck on a problem and how you solved it?
List down the reasons for choosing sas over other data analytics tools.
What does PROC print, and PROC contents do?
what is the use of proc sql? : Sas programming
Describe the ways in which you can create macro variables?
how many types of prompts are there? : Sas-bi
what is broad cast agent? : Sas-bi
How long can a macro variable be? A token? : sas-macro
What are the difference between sas functions and procedures?