Basic
Structure for SAS Programs, and syntex on the
WEB pages.
SAS Modular system 2 steps
- DATA
- PROCcedures
- A program is a series of these steps.
SAS CODE
consists of KEYWORDS and your input.
Programming KEYWORDS can be grouped:
Course
Syntex
We will use UPPER CASE letters when we type SAS
KEYWORDS to distinguish them from "user" input.
Rules for
Writing SAS Programs
- 1. End all lines with semicolon
- 2. Use comments (lines beginning with "*")
liberally to form Program Outline
- 3. Start with step KEYWORD- DATA, PROC
- 4. Indent lines under a step
- 5. Search for "ERROR"s in the program
LOG.
 
|