Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

just i imagine data in data base is;
like below output dataset:
data rating;
input name $ a b c d e f;
cards;
raj 1 54 21 5 7 2
jar 2 21 54 67 3 5
;
answer:

proc sort data=rating;
by name;
run;
proc transpose data=rating out=marks(rename=(col1=marks
_name_=subjects) drop=_label_);
by name;
run;
proc sort data=marks;
by descending marks name;
run;
data jj;
set marks;
by name;
if first.name then ind=0;
ind+1;
run;
proc print;
where ind in(1,2);
run;

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are _numeric_ and _character_ and what do they do? : Sas programming

1108


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1082


Why double trailing @@ is used in input statement?

1154


What is the basic syntax style in SAS?

1096


What do you code to create a macro? : sas-macro

1069


What is the general format of function in sas? : sas-grid-administration

919


How do you connect the desktop application to metadata server? : sas-grid-administration

1034


Name few SAS functions?

1046


what is the difference between floor and ceil functions in sas? : Sas-administrator

1192


What is the work of tranwrd function?

1184


what is broad cast agent? : Sas-bi

1014


: and & modifiers.

1338


how does sas handle missing values in functions? : Sas programming

1128


For what purposes have you used sas macros? : sas-macro

956


What can be the size of largest dataset in SAS?

1175