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...


/* To determine the maximum and minimum of V1 */

data before3;
input v1 v2 v3;
cards;
3 2 1
4 6 5
2 1 3
6 5 4
1 3 2
5 4 6
;
run;

Answers were Sorted based on User's Feedback



/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 ..

Answer / chandrakanth

proc means data=befor3 max min;
var v1;
run;

Is This Answer Correct ?    3 Yes 0 No

/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 ..

Answer / venkatesh

proc tabulate data=datasetname;
var v1;
table (min max)*v1;
run;

Is This Answer Correct ?    3 Yes 0 No

/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 ..

Answer / alok karan

/* To determine the maximum and minimum of V1 */




data before3;
 input v1 v2 v3;
 cards;
   3     2    1
   4     6    5
   2     1    3
   6     5    4
   1     3    2
   5     4    6
 ;
run;
proc sql;
select max(v1)as maximum , min(v1) as minimum
from before3;
quit;

Is This Answer Correct ?    0 Yes 0 No

/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 ..

Answer / sravan

proc means data=before3 max min ;
run;

Is This Answer Correct ?    2 Yes 3 No

/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 ..

Answer / sonia

Obs v1 v2 v3

1 3 2 1
2 4 6 5
3 2 1 3
4 6 5 4
5 1 3 2
6 5 4 6

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More SAS Interview Questions

AE datasets names? how many types?

0 Answers   Accenture,


how to perform paired t-test using Base/SAS & SAS/Stat?

2 Answers  


If you were told to create many records from one record show how you would do this using arrays and with PROC TRANSPOSE?

1 Answers   HCL, Quintiles,


what is the difference between %put and symbolgen?

6 Answers  


What would you change about your job?

0 Answers   Oracle,


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

0 Answers  


What are symget and symput? : sas-macro

0 Answers  


Give an example where SAS fails to convert character value to numeric value automatically?

0 Answers  


do you prefer proc report or proc tabulate? Why? : Sas programming

0 Answers  


How do dates work in sas?

0 Answers  


I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.

1 Answers  


How would you code a macro statement to produce information on the SAS log? This statement can be coded anywhere.

8 Answers  


Categories