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 by-group processing?

0 Answers  


What type of tables you are using in YOUR reporting..???

2 Answers   GSK GlaxoSmithKline,


what is Difference between PROC SQL JOINS and MERGE?

3 Answers   Accenture, Wipro,


what is sas application server? : Sas-di

0 Answers  


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

0 Answers   Accenture, Quintiles,


What is difference between sas rename and lable?

4 Answers  


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

0 Answers  


What is the difference between Regression and Logistic Regression? Can u explain the Assumptions/Conditions?

3 Answers  


How to sort in descending order?

0 Answers  


What are the differences between sum function and using “+” operator?

0 Answers  


How do you put an elephant in the refrigerator?

6 Answers   Oracle,


What was the last computer book you purchased? Why?

0 Answers   Oracle,


Categories