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

What is the SAS data set?

0 Answers  


what is the difference between %put and symbolgen?

6 Answers  


what is AE onset date and what is RDS?

4 Answers   Accenture,


what is the Population you used in your project, is it ITT or PP?

0 Answers   Accenture, Quintiles,


What does PROC print, and PROC contents do?

0 Answers  






If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?

10 Answers   Accenture,


Which are SAS Windows Clients & SAS Java Clients

3 Answers   TCS,


Name types of category in which SAS Informats are placed?

0 Answers  


Does SAS ?Translate? (compile) or does it ?Interpret?? Explain.

10 Answers  


What statement do you code to tell SAS that it is to write to an external file?

5 Answers  


how to debug and test the sas program? : Sas-administrator

0 Answers  


What are the difficulties u faced while doing vital signs table or dataset?

0 Answers  


Categories