If you need the value of a variable rather than the
variable itself what would you use to load the value to a
macro variable?
Answer Posted / yuyin
a=123;
call symput("x",a);
a is a variable, 123 is the value of variable a, x is macro
variable, symput will assign 123 to macro variable x.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is the difference between match merge and one to one merge?
Which statement does not perform automatic conversions in comparisons?
Did you used proc test? when?
what is the purpose of _error_? : Sas programming
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What are the default statistics that proc means produce?
Explain what is the use of proc gplot?
Tell me about % include and % eval? : sas-macro
How to read an input file in sas?
what versions of sas have you used (on which platforms)? : Sas programming
which date function advances a date, time or datetime value by a given interval? : Sas programming
How to specify variables to be processed by the freq procedure?
Differentiate between proc means and proc summary.
What is a method to debug and test your SAS program?
what can you learn from the sas log when debugging? : Sas programming