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 / bakul shah
/*
Bakul Shah
6/May/2009
*/
Data A ;
Array N{6};
Input Name $ N{*} ;
Call SortN(of N{*}); /* Sort for Intergers */
Put @5 Name $ @10 N{6} 3. +2 N{5} 3.;/* 6th and 5th */
DataLines;
David 76 81 65 87 78 98
Manisha 100 91 67 86 87 81
Bob 83 93 76 88 96 72
;
Run;
*;
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Define run-group processing?
What is the difference between match merge and one to one merge?
for what purpose would you use the retain statement? : Sas programming
how would you create multiple observations from a single observation? : Sas programming
How to convert a numeric variable to a character variable?
Name types of category in which SAS Informats are placed?
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
describe how to adjust the performance of data integrator? : Sas-di
describe about metadata object? : Sas-di
what are the scrubbing procedures in sas? : Sas programming
what is sas enterprise intelligence architecture? : Sas-bi
why a stop statement is needed for the point= option on a set statement?
What is the difference between the proc sql and data step?
Differentiate between proc means and proc summary.
what techniques and/or procs do you use for tables? : Sas programming