/* 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
Answer / chandrakanth
proc means data=befor3 max min;
var v1;
run;
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / venkatesh
proc tabulate data=datasetname;
var v1;
table (min max)*v1;
run;
Is This Answer Correct ? | 3 Yes | 0 No |
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 |
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 |
Explain the main difference between the sas procedures and functions? : Sas-administrator
Explain translate function?
in data set200 observation how to take 110,150,170 using sql procedure?
What is the difference between SAS Data step and SAS PROC SQL, and which is better?
How do dates work in sas?
/*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
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
is there any difference between proc summary and proc means?
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
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?
Are you familiar with special input delimiters How are they used?
Have you ever used the SAS Debugger?