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
Explain substr function?
explain the proc in sas? : Sas-administrator
what is the use of proc contents and proc print in sas? : Sas-administrator
How do dates work in sas?
what is slowly changing dimension? : Sas-di
how to generate the test data in sas without input data? : Sas-administrator
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
Enlist the syntax rules followed in sas statements.
why is a stop statement needed for the point=option on a set statement? : Sas programming
State the difference between INFORMAT and FORMAT ?
How do you specify the number of iterations and specific condition within a single do loop?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
Difference between informat and format?
Explain the use of proc print and proc contents?