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

how do the in= variables improve the capability of a merge? : Sas programming

1392


Mention some common errors that are usually committed in sas programming.

997


how sas deals with business intelligence? : Sas-bi

998


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

958


how will you locate the sas platform applications? : Sas-bi

980


What are the ways to do a “table lookup” in sas?

976


what is the difference between unique key and primary key? : Sas-di

1058


What is PROC in SAS?

1000


what are informats in sas? : Sas-administrator

1015


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1014


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2178


What are the automatic variables for macro? : sas-macro

1140


explain about data integrator metadata reports? : Sas-di

1038


What is run-group processing?

1090


Name types of category in which SAS Informats are placed?

1088