3
SAS Libraries..........................................................................................28
Assigning Librefs ....................................................................................28
Verifying Librefs .....................................................................................29
How Long Librefs Remain in Effect ..........................................................29
Specifying Two-Level Names...................................................................30
Other Formats........................................................................................30
Viewing the Contents of SAS Libraries.........................................................31
The CONTENTS Procedure ......................................................................32
The DATASETS Procedure.......................................................................34
Setting SAS System Options .......................................................................35
SAS Output ............................................................................................35
Handling Two-Digit Year Values: Year 2000 Compliance ...........................40
Viewing System Options.............................................................................44
The OPTIONS Procedure.........................................................................44
Additional System Options..........................................................................45
Summary ..................................................................................................46
Text Summary .......................................................................................46
Points to Remember ...............................................................................47
Quiz..........................................................................................................47
Chapter 3: Editing and Debugging SAS Programs............................................52
Overview...................................................................................................52
Introduction...........................................................................................52
Objectives..............................................................................................52
SAS Program Layout ..................................................................................52
Interpreting Error Messages .......................................................................53
Error Types............................................................................................53
Syntax Errors .........................................................................................53
Correcting Errors .......................................................................................54
Resubmitting a Revised Program .............................................................55
Resolving Common Problems......................................................................56
Missing RUN Statement ..........................................................................56
Missing Semicolon ..................................................................................57
Unbalanced Quotation Marks...................................................................58
Invalid Option ........................................................................................60
Additional Features ....................................................................................61
Comments in SAS Programs....................................................................61
SAS System Options ...............................................................................61
Summary ..................................................................................................62
Text Summary .......................................................................................62
Points to Remember ...............................................................................62
Quiz..........................................................................................................62
Chapter 4: Creating List Reports ....................................................................66
Overview...................................................................................................66
Introduction...........................................................................................66