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 / damwal
Use CALL SYMPUT routine.
Below I show how to assign the value of 3rd observation of
variable name (94) to a macro variable named "macrovar1"
data test;
input name @@;
datalines;
1 21 94 444 5
;
data _null_;
set test (firstobs=3 obs=3);
call symput("macrovar1",name);
run;
%put ¯ovar1; /*display*/
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain the difference between proc means and proc summary?
For what purpose would you use the RETAIN statement?
What is the general format of function in sas? : sas-grid-administration
Explain data step in SAS
Difference between SAS STATA & SPSS?
it will become easy if uuu provide website linkssss and list of consultanciessssss
What can you learn from the SAS log when debugging?
What is the difference between order and group variable in proc report?
Mention how to limit decimal places for the variable using proc means?
Explain what is the use of proc gplot?
What is slibref?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
Differentiate input and infile.
What are the features of SAS?
What is maximum storage capability of SAS?