how we can call macros with in data step?

Answer Posted / selvi

We can call macro in a dataset by preceding % with macro
name.

call symput - used to create macro variable in data step.

symget - used to assign value of macro variable to data
step variable.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the trace option do?

643


: and & modifiers.

842


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

1856


How would you define the end of a macro? : sas-macro

570


how to do user inputs and command line arguments in sas?

2405






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

547


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

580


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

559


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

521


What is maximum storage capability of SAS?

878


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?

2353


Why double trailing @@ is used in input statement?

672


What is proc sort?

699


What is a macro routine?

2077


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

677