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
what is program data vector? : Sas-administrator
What is the role of unrestrictive users? : sas-grid-administration
Define run-group processing?
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
how does sas handle missing values in procs? : Sas programming
What are common programming errors committed in sas
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What is the use of divide function?
how many display types available in sas bi dashboard? : Sas-bi
What are the automatic variables for macro? : sas-macro
What is the basic syntax of a sas program?
What are the different types of sas functions?
How long can a macro variable be? A token? : sas-macro
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?