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 %put and symbolgen? : sas-macro
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
What do you know about sas and what we do? : sas-grid-administration
What Proc glm does?
Which are the statements whose placement in the data step is critical?
What are the statements in proc sql?
what is the difference between infile and input? : Sas-administrator
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? : sas-macro
How to create a permanent sas data set?
Explain data_null_?
How substr function works in sas?
what are validation tools that are used in sas? : Sas-administrator
Explain the difference between nodup and nodupkey options?
How would you identify a macro variable?
explain the proc in sas? : Sas-administrator