HOME Module List Site Index About This Site glossary" Resources Innovative Technology Center UT Statistics Courses
Using SAS Choose Design ANOVA Compare Means Regression Examples
Using SAS Using SAS: Table of Contents

Working with SAS
SAS programs

A SAS program is a sequence of statements: instructions for SAS to do various things, like read data or run an ANOVA. These statements (blue in DAWG) are plain text and can be created by you or another in any computer program. Generally, these statements are stored as a file with the .sas extension so that SAS can recognize it.

Here is an example of a SAS program:

DATA one;
     INPUT x y;
1.3 2.7
4.6 .
3.6 3.1
0 -2.3
    MODEL y=x;

This program illustrates the two primary functions of a SAS program:
    making data available for use, and then
    processing the data with SAS procedures (PROC).

If you like, copy the above into your SAS Editor Window and run it.

If you already have a SAS program stored on your computer, then File Open will read it into the Editor Window.

Related Topics:                                                                                                     Using SAS: Table of Contents
SAS windows
Menus and icons
Running, printing and saving  

Home | Contact us | Module list & summary | Glossary/Terms | About this site | Stats courses | Links | Index