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

Step 2: First save the SAS programme code: ex4.sas and data file: ex4.sas7bdat .

 Step 3: Then start the SAS program, and the enhanced editor ( from view menu) and open  (from file menu)  the saved SAS progam  file (ex4.sas). 

Step 4: 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 4 is stored. (screenshot 1.) e.g peas/sas/data/  (do not include the data file name.) 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 log file to see if it has worked.

Step 5: You are now ready to run the next bit of the program.

 Step 6: Now highlight the next bit of code up to RUN;. Submit this  (running man icon) and check that it has worked by checking the log file.  To see what all your results should look like click on this results file: ex4_Sres.rtf

To find out more about the SAS package click here.
SAS mini guide exemplar 4