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

What can be the size of largest dataset in SAS?

0 Answers  


Compare sas with other data analytics tools.

0 Answers  


What are the criticality that you have faced during your project in SAS?

2 Answers  


i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?

3 Answers  


Name validation tools used in SAS

0 Answers  






What are the table names in oracle database...?

0 Answers   HSBC,


How do you use the do loop if you don’t know how many times you should execute the do loop?

0 Answers  


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


What are the data types that sas contain?

0 Answers  


what is the diff b/w verification validation in sas

3 Answers   SAS,


how to remove duplicates using proc sql?

0 Answers  


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

0 Answers  


Categories