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 ('&macrovarname');

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


Please Help Members By Posting Answers For Below Questions

what are the best practices to process the large data sets in sas programming? : Sas-administrator

540


what is the difference between floor and ceil functions in sas? : Sas-administrator

704


Describe a time when you were really stuck on a problem and how you solved it?

2086


Name some categories in sas 9? : sas-grid-administration

559


name several ways to achieve efficiency in your program? : Sas programming

571






I have a dataset concat having a variable a b & c. How to rename a b to e & f?

757


What is the length assigned to the target variable by the scan function?

676


What are the table names in oracle database...?

2250


How to sort in descending order?

794


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

572


what are all the reports you generated in your recent project?

1683


Do you need to rearrange the order of the data for the report?

1835


Name and describe few sas character functions that are used for data cleaning in brief.

668


How to include or exclude specific variables in a data set?

646


Describe the function and utility of the most difficult SAS macro that you have written?

2025