UMASS Department of:
Biostatistics and Epidemiology

SAS:The Statistical Analysis System
Basics
Combo
Desc Stats
Advanced
Index
SASHome
Intro
Data In
Data Out
Pretty
Cleaning
Documentation
Environs

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:

  • GLOBAL STATEMENTS
  • DATA STEP KEYWORDS
  • PROC KEYWORDS

    In the Windows Environment, SAS commands to manipulate the Windows and SAS software are called: DISPLAY MANAGER COMMANDS


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.

 


Last Update: 9/13/98
Comments: Ed Stanek
Email:
stanek@schoolph.umass.edu
\ed\web\be691f\webready\sbinfok2.html