Free Practice Exercise 1

Copy and run the EXAM data set from the yellow box below.


EXAM contains 4 variables:

  • ID: Student ID
  • TEST1: First test result
  • TEST2: Second test result
  • FINAL: Final exam result

The final score is calculated as:

  • 50% of (the highest of the first and second test) +
  • 50% of the final exam result

Write a SAS program to calculate the final score for each student. Create any data set or variables if necessary.

Get Solution