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

Give e an example of..

1849


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

583


How can I remove header from output data set?

2066


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2293


If you could design your ideal job, what would it look like?

2378






What are the parameters of scan function?

624


Mention common programming errors committed in sas ?

649


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2270


what is the purpose of _error_? : Sas programming

614


If a variable contains letters or special characters, can it be numeric data type?

765


Which command is used to save logs in the external file?

572


Describe the ways in which you can create macro variables?

640


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

595


What are the data types in sas?

613


Describe crosslist option in tables statement?

715