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

What is the significance of the ‘OF’ in X=SUM (OF a1-a4, a6, a9);?

8 Answers  


how to generate report for 0 observation dataset?

3 Answers   Mind Tree, Student,


Name and describe few sas character functions that are used for data cleaning in brief.

0 Answers  


why only we use SAS? their r many programmin language like SPSS, Oracle... Why SAS?

2 Answers   Accenture,


If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?

10 Answers   Accenture,


If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?

16 Answers  


what is incremental update ? is this possible in SAS OLAP CUBE STUDIO.

1 Answers   TCS,


Can anyone help me about SAS Realtime scenarios in Clinical field

0 Answers  


what is the difference between SET and MERGE?

19 Answers   CitiGroup,


If i doest required Cumilative frequency in my table, generated by using PROC FREQ what i had to do?

8 Answers   HCL,


How would you include common or reuse code to be processed along with your statements?

3 Answers   Accenture,


how does sas handle missing values in sort order? : Sas programming

0 Answers  


Categories