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

Do you need to know if there are any missing values?

1004


what versions of sas have you used (on which platforms)? : Sas programming

1012


why is sas considered self-documenting? : Sas programming

1090


what are the categories that sas informats are used to the place the data? : Sas-administrator

998


what is metadata? : Sas-bi

984


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5390


Mention what is the difference between nodupkey and nodup options?

969


how would you determine the number of missing or nonmissing values in computations? : Sas programming

1099


what are the best practices to process the large data sets in sas programming? : Sas-administrator

973


what are the types of interactive display types? : Sas-bi

1045


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

1185


what is star schema? : Sas-di

1087


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1858


What are the different servers in sas? : sas-grid-administration

1017


What is the work of tranwrd function?

1189