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 are the best practices to process the large data sets in sas programming? : Sas-administrator
what is the difference between floor and ceil functions in sas? : Sas-administrator
Describe a time when you were really stuck on a problem and how you solved it?
Name some categories in sas 9? : sas-grid-administration
name several ways to achieve efficiency in your program? : Sas programming
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
What is the length assigned to the target variable by the scan function?
What are the table names in oracle database...?
How to sort in descending order?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
what are all the reports you generated in your recent project?
Do you need to rearrange the order of the data for the report?
Name and describe few sas character functions that are used for data cleaning in brief.
How to include or exclude specific variables in a data set?
Describe the function and utility of the most difficult SAS macro that you have written?