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

Explain the main difference between the sas procedures and functions? : Sas-administrator

0 Answers  


Explain translate function?

0 Answers  


in data set200 observation how to take 110,150,170 using sql procedure?

7 Answers   Accenture,


What is the difference between SAS Data step and SAS PROC SQL, and which is better?

1 Answers   TCS,


How do dates work in sas?

0 Answers  






/*i have the following dataset.*/ data score; input marks ; datalines; 10 20 30 40 50 60 70 80 90 100 ; run; Now i should get the result as sum of 1 to 5 i.e(10+20+30+40+50)=150 and 2 to 6 i.e(20+30+40+50+60)=200 and 3 to 7 i.e(30+40+50+60+70)=250 and so on. how to get it. thanks in advance

2 Answers   Eval Source,


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

0 Answers  


is there any difference between proc summary and proc means?

3 Answers  


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

0 Answers  


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

4 Answers  


Are you familiar with special input delimiters How are they used?

3 Answers  


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


Categories