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

Common SAS syntax rules
Statements

SAS statements are the instructions used to accomplish everything in SAS. Statements start with a key word, and end with a semicolon. Many statements have options, which are put at the end of the statement following a / character.

Here are some examples.

DATA one;
INPUT x;
PROC MIXED DATA=one COVTEST;
MODEL y = x / OUTP=rrr E SOLUTION;
%MMAOV(one,y,fixed=x);

Key words in these statements are DATA, INPUT, PROC, MODEL and %. Each statement ends with a semicolon. This allows you to use multiple lines for one statement, or put multiple statements on one line. Making the program easy to read is the usual goal for such formatting decisions.

Between the keyword and the semicolon, a mix of SAS instructions and your names is used to tell SAS what to do to which variables and datasets. The thousands of pages of SAS documentation contain details and examples on how to correctly request what you want done.

 

Related Topics:                                                                                                     Using SAS: Table of Contents
Statements
Names
Comments

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