screenshot 1

SAS mini-guide exemplar 1

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

Step 2: First save the SAS programme code: ex1.sas and data file: ex1.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 2 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 highlight and run the code that starts with

PROC FORMATS, down as far as and including the line 

RUN;    This SAS about variable labels.



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 .

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

To find out more about the SAS package click here.