/* 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 |
AE datasets names? how many types?
how to perform paired t-test using Base/SAS & SAS/Stat?
If you were told to create many records from one record show how you would do this using arrays and with PROC TRANSPOSE?
what is the difference between %put and symbolgen?
What would you change about your job?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
What are symget and symput? : sas-macro
Give an example where SAS fails to convert character value to numeric value automatically?
do you prefer proc report or proc tabulate? Why? : Sas programming
How do dates work in sas?
I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.
How would you code a macro statement to produce information on the SAS log? This statement can be coded anywhere.