Table of Contents
Chapter 1: Basic Concepts ...............................................................................7
Overview.....................................................................................................7
Introduction.............................................................................................7
Objectives................................................................................................7
SAS Programs .............................................................................................7
Components of SAS Programs ...................................................................7
Characteristics of SAS Programs ................................................................8
Layout for SAS Programs ..........................................................................9
Processing SAS Programs..........................................................................9
Log Messages ........................................................................................10
Results of Processing..............................................................................10
SAS Libraries .............................................................................................13
How SAS Files Are Stored .......................................................................13
Storing Files Temporarily or Permanently.................................................14
Referencing SAS Files ................................................................................14
Two-Level Names...................................................................................14
Referencing Temporary SAS Files ............................................................15
Referencing Permanent SAS Files ............................................................15
Rules for SAS Names ..............................................................................16
SAS Data Sets ...........................................................................................16
Overview of Data Sets ............................................................................16
Descriptor Portion ..................................................................................17
Data Portion...........................................................................................17
Observations (Rows) ..............................................................................17
Variable Attributes .....................................................................................17
Name ....................................................................................................18
Type......................................................................................................18
Length...................................................................................................19
Format ..................................................................................................19
Informat ................................................................................................20
Label .....................................................................................................20
Variables (Columns) ...............................................................................21
Missing Values .......................................................................................21
Summary ..................................................................................................22
Text Summary .......................................................................................22
Points to Remember ...............................................................................23
Quiz..........................................................................................................24
Chapter 2: Referencing Files and Setting Options............................................28
Overview...................................................................................................28
Introduction...........................................................................................28
Objectives..............................................................................................28
Referencing Files .......................................................................................28