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

How would you delete duplicate observations?

10 Answers   Accenture,


what do the pad and dim functions do? : Sas programming

0 Answers  


what is option year cuttoff in sas

2 Answers   L&T,


Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.

6 Answers   HSBC,


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  






If money were no object, what would you like to do?

0 Answers   Oracle,


What are the different versions of sas that you have used until now? : sas-grid-administration

0 Answers  


Compare sas with other data analytics tools.

0 Answers  


diff between nodup rec and ondup key???

3 Answers   AON, Sciformix,


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


what type of graphs we will create(for 2+years candidates)?

0 Answers   Accenture, Icon,


Best trainer in hyderabad for sas banking.if any one have details pls provide contact details.

1 Answers  


Categories