续前一个帖子“SAS新手竭诚求教代码编写(1)"
http://www.pinggu.org/bbs/thread-950347-1-1.html, 另外两个问题还是和macro有关,100论坛币悬赏解决:Q4. 完成以下macro.
%macroprocessyear(Inputds=StudentScore, Year=91,Outputds=Year_out);
%mend;
Year_out should have the following variables:
Year- Year specified in the input.
StudentHighScore- “StudentID “of the student with thehighest score for that year.
YearAvg- Average for the input year.
Q5.
Write a SAS macro to create individual student files foreach student/year combination.
谢谢大家!