Flag: A flag variable which indicates whether a student’s score increased or decreased from the previous year. That is, mark a “zero” for each year a student’s score was lower than the previous year. Conversely, mark a “one” for each year a student’s score was equal or higher than the previous year.
Q3. Write a SAS macro to create individual student files for each student/year combination.
data:
Student Year Score
A 91 400
A 92 398
B 91 455
B 92 432
B 93 444
B 94 446
C 91 412
C 92 423
C 93 411
C 94 415
C 95 413
C 96 418