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 |
Code the MEANS to produce output to be used later.
What are pdv and it functions?
What is SAS Information Map Studio and its purpose ?
. Which date advances a date, time or date/time value by a given interval?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What is _n_?
how to generate means for every subject;
explain the use of % includes a statement in sas? : Sas-administrator
For what purpose(s) would use the RETURN statement?
Have you ever linked SAS code, If so, describe the link and any required statements used to either process the code or the step itself?
What is the difference between nodup and nodupkey options?
20 Answers iFlex, Makro, Talwar,
i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?