/* 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 is SAS/Graph?

1 Answers   CitiGroup, NTPC,


What is the basic structure of the SAS base program?

0 Answers  


What are SAS/ACCESS and SAS/CONNECT?

0 Answers  


how to get second highest salary from a employee table and how get a 5th highest salary from a employee table?

11 Answers   ABC, Amex,


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

0 Answers   L&T,






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

1 Answers   TCS,


Write SAS codes to compare two datasets. Suppose the allowable difference is 0.1.

2 Answers  


What is the order of evaluation of the comparison operators: + - * /** ()?

3 Answers   Quintiles,


Can you execute a macro within a macro? Describe. : sas-macro

0 Answers  


what is the Population you used in your project, is it ITT or PP?

0 Answers   Accenture, Quintiles,


Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?

4 Answers   HP, Oracle,


What are the statements in proc sql?

0 Answers  


Categories