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

Reading Data by Typing it Into the Computer.


Details

DATA Statement:

Naming SAS Data Sets
  • 8 characters or less,
  • start with letter,
  • Use letter, number or _ and no blanks

INPUT Statement

Naming Variables

  • 8 characters or less,
  • start with letter,
  • Use letter, number or _ and no blanks

INPUT Statement

Types of Variables

  • Numeric (numbers)
  • Character (follow variable name with $ )

INPUT Statement

Length of Character Variables

  • Default is 8 characters
  • Indicate longer lengths with numbers: ie. $12.
    • Include the DECIMAL point!

CARDS Statement

  • Data begin after the CARDS; statement
  • Don't use a semicolon in the data
    • enter semicolon on line following data




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