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 program data vector? : Sas-administrator

1081


Explain what Proc glm does?

1220


Tell e how how dealt with..

2227


what is proc Index? and what is proc document?

2724


what are validation tools that are used in sas? : Sas-administrator

1062


In sas, what are the areas that you are most interested in? : sas-grid-administration

1074


what techniques and/or procs do you use for tables? : Sas programming

1069


Name some categories in sas 9? : sas-grid-administration

979


What is the role of administrative users? : sas-grid-administration

1084


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1691


If a variable contains only numbers, can it be a character data type?

1089


what is transformation in sas data integration? : Sas-di

1038


Difference between SAS STATA & SPSS?

1128


Describe the ways in which you can create a macro variable?

1089


What are the default statistics that proc means produce?

1050