In a shcool there are 1000 students. After completion of
every test in 6 subjects , each subject teacher submit the
marks of every student at different times and loaded in the
database commonly. How will you seperate the top two
subject marks for each each studet using SAS?

Answer Posted / santosh reddy

data x;
set rating;
max1=max(of a--f);
array aa(6) a--f;
do i=1 to 6;
if aa(i)>max2 and aa(i)<max1 then max2=aa(i);
end;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of PROC gplot?

638


what does the run statement do? : Sas programming

556


What is your favorite all time computer book? Why?

2046


What is factor analysis?

661


what is program data vector? : Sas-administrator

614






What are the difference between ceil and floor functions in sas?

706


how to remove duplicates using proc sql?

630


Name some categories in sas 9? : sas-grid-administration

557


what is broad cast agent? : Sas-bi

593


Explain the use of proc print and proc contents?

560


Explain the special input delimiters used in sas programming.

583


describe how to adjust the performance of data integrator? : Sas-di

563


What is the basic structure of a sas program?

598


explain the use of % includes a statement in sas? : Sas-administrator

547


What are the data types that sas contain?

655