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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the difference between proc means and proc summary?

675


What is the order of application for output data set options, input data set options and SAS statements?

1087


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

1939


What is the basic structure of the SAS base program?

692


What is the use of PROC gplot?

642






what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

653


Differentiate between sas functions and sas procedures.

646


What makes sas stand out to be the best over other data analytics tools?

591


Mention the validation tools used in SAS?

658


What is your favorite all time computer book? Why?

2050


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1588


Difference between sum function and using “+” operator?

606


What do the SAS log messages "numeric values have been converted to character" mean?

892


What are the data types does SAS contain?

658


What are the features of SAS?

582