how we can call macros with in data step?

Answer Posted / learner

We have to use call execute to call a macro. For other
answers
1 &(amperson) is used to resolve the macrovariable and not
call macro .
2 Call symput is to define a macro variable dynamical in
data step. useful in data driven programs.

3 symget is to get the macro variable from symbol table and
not call a macro.

Hope it will help..would recomand to double check before
post ..al the best

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For clinical entire study how many tables will create approx?

1520


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

572


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

638


What are types of transport files?

6861


How to create a permanent sas data set?

678






What is the difference between nodupkey and nodup options?

595


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2385


how would you create multiple observations from a single observation? : Sas programming

568


How to limit decimal places for variable using proc means?

588


How would you include common or reuse to be processed along with your statements?

1899


Give some examples where proc report’s defaults are different than proc print’s defaults?

599


where are dashboard components are created and maintained? : Sas-bi

566


In SAS explain which statement does not perform automatic conversions in comparisons?

801


what is sas database server? : Sas-di

617


Explain proc sort?

673