screenshot 1

SAS mini-guide exemplar 3

Step 1: Make sure you have SAS on your system.

Step 2: First save the SAS programme code: ex3.sas and data file: ex3.sas7bdat Then open SAS and open the code
within SAS.

Step 3: The next thing you need to do is to tell SAS where
your data is located.

You will see the first NOT GREEN line starts with the SAS
command LIBNAME (SAS is not case sensitive).

Change the part in quotes to the name of the directory on your
computer where the SAS data set for exemplar 3 is stored.
(screenshot 1.) e.g peas/sas/data/ 
(do not include the data file name.)


Step 4: Highlight that line of code and run (submit)
it to SAS by clicking on the running man at the top row
of icons. Check that the data file has been read in
by reading the log file.

Step 5: Now save the SAS formats file: ex3formats.sas to your 

computer and then open it in SAS and run it to assign 

Formats to variables (screenshot 2)

Step 6: Now highlight the next bit of code (include title)
to RUN;. Submit this and check that it has worked by
checking the output (screenshot 2.)

Step 7: To see what all your results should look like click on
this results file: ex3SASres.htm

To find out more about the SAS package click here.