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;



The below code we are using for creating more than one macro variables in proc sql using into clau..

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

Post New Answer

More SAS Interview Questions

how to change the execute of macro

0 Answers   Mind Tree,


I need level 2 to 5 sas using companies in india

0 Answers  


How would you invoke a macro? : sas-macro

0 Answers  


Explain the use of proc gplot? : sas-grid-administration

0 Answers  


In which case u go for libname and in which case u go for proc sql pass thru facilit diff?

1 Answers  






What is the use of the %include statement?

0 Answers  


How can I remove header from output data set?

0 Answers  


Which statement does not perform automatic conversions in comparisons?

0 Answers  


What is maximum number of rows and cols can be handled in SAS?

0 Answers   Signetsoft,


What is the use of divide function?

0 Answers  


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??

0 Answers   Oracle,


What is the one statement to set the criteria of data that can be coded in any step?

4 Answers  


Categories