The below code we are using for creating more than one
macro variables in proc sql using into clause. How we
can use same code to create macro variables vara, varb,
varc instead of var1, var2, var3.?
proc sql noprint;
select count(distinct(patient)) into :var1 - :var3
from dataset1
group by trtreg1c
;
quit;
Answer / gk
ONly Var1 will be assigned based on the distinct patient
count. Var2 & Var3 macro variables will not be created .
We can not use :Vara - :Varc in into clause of select
statement for creating macro variables .Sinxe it is not a
array format.
Is This Answer Correct ? | 4 Yes | 0 No |
how to change the execute of macro
I need level 2 to 5 sas using companies in india
How would you invoke a macro? : sas-macro
Explain the use of proc gplot? : sas-grid-administration
In which case u go for libname and in which case u go for proc sql pass thru facilit diff?
What is the use of the %include statement?
How can I remove header from output data set?
Which statement does not perform automatic conversions in comparisons?
What is maximum number of rows and cols can be handled in SAS?
What is the use of divide function?
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
What is the one statement to set the criteria of data that can be coded in any step?