Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the differnce between SDTM 3.1.2 to 3.1.1 version

5069


what is function of retain statment

2023


If money were no object, what would you like to do?

3194


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1191


what is the difference between nodup and nodupkey options? : Sas programming

1181


What areas of SAS are you most interested in?

1531


explain about sas business intelligence? : Sas-bi

1132


What is the maximum length of the macro variable? : sas-macro

1086


how could you generate test data with no input data? : Sas programming

1181


How can you create a macro variable with in data step? : sas-macro

1036


What is a put statement?

1192


What are symget and symput? : sas-macro

1303


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2222


Tell me more about the parameters in macro? : sas-macro

1049


What are common programming errors committed in sas

1138