You are on page 1of 1

UNIVERSITY OF THE WESTERN PRACTICAL EXERCISE 1

SAS Practical Exercise 1 – 19th February 2024

Chapter 1 - Getting Started

Question 1:

Use the following txt. file and copy it to your Code window in SAS Studio in order to complete question 1:

1.1. Enter the code from the txt. File “TEMP” and run the program. Make sure that the code window is clear of all other information
before you begin.

Include your name in the Title line. Observe the results in the Output window. To save the output to a file, make sure the output
window is active and select file-> Save as, or you can select and copy the contents of the Output window and paste the out into a word
document.

Hints:
a. Begin SAS Studio
b. Enter the SAS Code as instructed above. Pay attention to the colour coding to make sure all of your code as been entered
correctly.
c. Run the program. (Click the “Running Man” icon or select run-> submit on the menu bar.)
d. Check the log window for errors.
e. If there are errors in the log file, proceed to the next step; if not, go to step J.
f. Press F12 to clear the log and output windows if you have previously defined the F12 key. If not, in the log and output
windows right click and from the pop-up menu select edit -> clear all to erase the current contents of those windows. (This is
so that you won’t accidently try to fix an old error.)
g. Return to the code window
h. Make corrections in the code window and re-save the code
i. Go back to step D.
j. Examine the output.
k. You may optionally print or save your output.
l. End SAS.

Question 2.

Use the following txt. File “RECOVERY” and copy it to your Code window in SAS Studio in order to complete question 2:

1.2. Enter the code from the txt. File and run the program. Make sure that the code window is clear of all other information before
you begin.

Include your name in the Title line. Observe the results in the Output window. To save the output to a file, make sure the output
window is active and select file-> Save as, or you can select and copy the contents of the Output window and paste the out into a word
document.

 Include your name in the Title line. Observe the results in the output window.

You might also like