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

data rating;
input a b c d e f;
cards;
1 54 21 5 7 2
2 21 54 67 3 5
;
*here 1000 observations with above variables;

data nrate;
set rating;
array r{6} a -- f;
do i=1 to 6;
*for first maximum;
if r{i}>max1 then max1=r{i};
*for second maximum;
if r{i}>max2 and r{i}<max1 then max2=r{i};
end;

proc print;
run;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to specify variables to be processed by the freq procedure?

1030


what is the difference between infile and input? : Sas-administrator

1064


which date function advances a date, time or datetime value by a given interval? : Sas programming

996


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1301


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2706


What does the RUN statement do?

1258


Did you used proc test? when?

1982


what is information maps?

2156


What are the functions used for character handling?

1177


explain the proc in sas? : Sas-administrator

1038


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

2036


What is factor analysis?

1080


In sas admin differentiate between roles and capabilities? : sas-grid-administration

941


How can you create a macro variable with in data step? : sas-macro

988


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1102