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 difference between the sas data step and sas procs?

814


Describe the function and untility of the most difficult SAS macro that you have written.

1813


what does the run statement do? : Sas programming

759


What is the purpose of _character_ and _numeric_?

792


what is sas enterprise intelligence architecture? : Sas-bi

730






What are the prime responsibilities of data integration administrator? : Sas-di

786


Explain input and put function?

843


what is operational data and operational system? : Sas-di

830


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

836


what is sas database server? : Sas-di

794


explain the function of substr in sas? : Sas-administrator

750


Intern stastical programmer written test

477


why is sas data integration studio important? : Sas-di

751


What is the difference between INPUT and INFILE ?

960


For what purpose would you use the RETAIN statement?

1241