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 do the sas log messages "numeric values have been converted to character" mean? : Sas programming
What system options would you use to help debug a macro? : sas-macro
what is snowflake schema? : Sas-di
Have you ever used the SAS Debugger?
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
What do you know about sas data set?
What is the use of divide function?
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
Did you used proc test? when?
how do the in= variables improve the capability of a merge? : Sas programming
Are you involved in writing the inferential analysis plan? Tables specfications?
What’s the difference between var b1 – b3 and var b1 — b3?
for what purpose would you use the retain statement? : Sas programming
what is the primary data source for the wrs? : Sas-bi
How do you delete duplicate observations in sas?