SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Basic Concepts
SAS Programs


Characteristics of SAS Programs

Next let's look at the individual statements in our sample program. SAS programs are made up of SAS statements. A SAS statement has two important characteristics:

  • It usually begins with a SAS keyword.
  • It always ends with a semicolon.

As you've seen, a DATA step begins with the keyword DATA, and a PROC step begins with the keyword PROC. Our sample program contains (1) a DATA statement, (2) a SET statement, (3) a RUN statement, (4) a PROC PRINT statement, and (5) another RUN statement.


SAS statements


Layout for SAS Programs

SAS statements are free-format. This means that

  • they can begin and end anywhere on a line
  • one statement can continue over several lines
  • several statements can be on a line.

Blanks or special characters separate "words" in a SAS statement.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement