Working with the SAS System
Working With The SAS System
Erik W. Tilanus
Preface
Introduction
To the reader
SAS documentation
Conventions
Acknowledgments
Preface with the English edition
Chapter 1 Information Processing
- Introduction
- Computer systems
- Processing methods
Chapter 2 Introducing the SAS System
- A first example
- Basic principles and basic concepts of the SAS System
- Graphical presentation
- Exercises
Chapter 3 Introduction to the DATA step
- The DATA statement
- Reading data
- INFILE statement
- CARDS statement
- Adding observations to the SAS data set
- Structure of the DATA step
- Exercises
Chapter 4 Introduction to the PROC step
- The PROC step
- PROC SORT
- PROC PRINT
- PROC CONTENTS
- Sample program
- Exercises
Chapter 5 The SAS Display Manager
- Introduction
- The main windows
- Command line commands
- Support windows
- Other aspects
Chapter 6 Programming the DATA step
- Assignment
- Program flow control
- DO-END groups
- Date and time
- 'Vertical processing'
- Missing values
- Exercises
Chapter 7 Functions
- Character functions
- General numeric functions
- Arithmetic functions
- Statistical functions
- Other functions
- Warning
- Exercises
Chapter 8 SAS data sets as input
- Reading and updating SAS data sets
- SET statement
- MERGE statement
- UPDATE statement
- Optiions for SET/MERGE/UPDATE
- Example of SET/MERGE with options
- Exercises
Chapter 9 Layout definitions
- Introduction
- Layout of variables:FORMAT
- PROC FORMAT
- Layout and creation of external files
- Sample program with FILE and PUT statements
- Exercises
Chapter 10 Storage and maintenance of SAS files
- SAS data libraries
- Accessing SAS data libraries
- Multiple Engine Architecture
- LIBNAME statement
- Data library management and maintenance
- PROC COPY
- PROC DATASETS
- PROC CATALOG
- Exercises
Chapter 11 Descriptive statistics
- PROC MEANS - introduction
- PROC MEANS and PROC SUMMARY
- PROC FREQ
- Exercises
Chapter 12 PROC TABULATE
- Introduction
- Description of the procedure
- The TABLE statement
- Sample TABULATE program
- Exercises
Chapter 13 Graphic presentation
- Introduction
- Example, the situation
- PROC PLOT
- PROC CHART
- Exercises
Chapter 14 The SAS macro language
- Introduction to the SAS macro language
- Macro variables
- Definition and use of MACROS
- Macro statements
- Macro functions
- The quoting principle and the quoting functions
- Position of macro actions on the timeline
- Macros in programs
- Development and testing of macros
- Exercises
Chapter 15 Advanced DATA step features
- The DATA step operation
- Stored Program facility
- The WINDOW and DISPLAY statement
- Arrays
- Sample program WINDOW and ARRAY
- The IF statement trauma
- LINK and RETURN statements
- Exercises
Chapter 16 Accessing SAS data sets
- The SET statement
- The MODIFY statement
- Table look-up
- Exercises
Chapter 17 PROC REPORT
- Introduction
- Interactive report definition
- Report on the checkout time log
- PROC REPORT programming statements
- Exercises
Chapter 18 Support routines
- Introduction
- SAS options
- FORMATs
- PROC PRINTTO
- PROC TRANSPOSE
- PROC COMPARE
- Autoexec routines
- DATA step views
- Exercises
Chapter 19 Introduction to SAS/FSP Software
- SAS/FSP Software
- PROC FSEDIT
- PROC FSBROWSE
- PROC FSVIEW
- PROC FSLIST
- Exercises
Chapter 20 Introduction to SAS/GRAPH Software
- Introduction
- General statements
- PROC GPLOT
- PROC GCHART
- Annotate facility
- Replay and Template facility
- PROC GREPLAY
- Exercises
- Appendices
Appendix A: Solutions to the exercises
Appendix B: Symbol coding and number systems
Appendix C: Examples of PROC TABULATE
Appendix D: Eamples of PROC CHART
Appendix E: Binary Search macro
Appendix F: ISO week number macro
Appendix G: Ternary diagram macros
Appendix H: The SAS System under Windows
Appendix I: The SAS System under OS/2
Appendix J: The SAS System under UNIX
Appendix K: The SAS System under VMS
Appendix L: The SAS System under CMS
Appendix M: The SAS System under MVS
Appendix N: Summary of SAS products and documentation
Index