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;



The below code we are using for creating more than one macro variables in proc sql using into clau..

Answer / 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

More SAS Interview Questions

Code the MEANS to produce output to be used later.

2 Answers  


What are pdv and it functions?

0 Answers  


What is SAS Information Map Studio and its purpose ?

2 Answers   SAS, TCS,


. Which date advances a date, time or date/time value by a given interval?

8 Answers  


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

0 Answers  


What is _n_?

23 Answers   Accenture,


how to generate means for every subject;

4 Answers   Mind Tree,


explain the use of % includes a statement in sas? : Sas-administrator

0 Answers  


For what purpose(s) would use the RETURN statement?

1 Answers  


Have you ever linked SAS code, If so, describe the link and any required statements used to either process the code or the step itself?

4 Answers  


What is the difference between nodup and nodupkey options?

20 Answers   iFlex, Makro, Talwar,


i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?

1 Answers   L&T,


Categories