how to assign a macro value to a variable?

Answer Posted / cool dude

Creating a Macro.

%Let a='City';

Assigning the macro value of a (which is 'City') to variable.

Data _null_;
b=&a;
put b= ;
run;

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of proc sql? : Sas programming

600


Are you involved in writing the inferential analysis plan? Tables specfications?

2119


Tell e how how dealt with..

1759


which features do you use to check the data validations and errors? : Sas-administrator

554


Of all your work, where have you been the most successful?

4207






Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1471


What is the difference between input and infile statement?

688


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

634


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?

2388


What are the 3 components in sas programming?

729


How do dates work in sas?

649


Differentiate between sas functions and sas procedures.

648


What is SAS?

626


List out some key concept of SAS

625


What is PDV?

732