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


Please Help Members By Posting Answers For Below Questions

what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

764


What system options would you use to help debug a macro? : sas-macro

853


what is snowflake schema? : Sas-di

895


Have you ever used the SAS Debugger?

1453


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?

902


What do you know about sas data set?

799


What is the use of divide function?

788


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4125


Did you used proc test? when?

1794


how do the in= variables improve the capability of a merge? : Sas programming

1162


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

1965


What’s the difference between var b1 – b3 and var b1 — b3?

1052


for what purpose would you use the retain statement? : Sas programming

806


what is the primary data source for the wrs? : Sas-bi

860


How do you delete duplicate observations in sas?

799