×

Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

The Little SAS Book: A Primer, Second Edition / Edition 2
     

The Little SAS Book: A Primer, Second Edition / Edition 2

3.3 3
by Lora D. Delwiche, Susan J. Slaughter, Susan J. Slaughter
 

See All Formats & Editions

ISBN-10: 1580252397

ISBN-13: 9781580252393

Pub. Date: 11/10/1998

Publisher: SAS Publishing

Want to learn SAS software but you don't know where to start? This friendly easy-to-read guide gently introduces you to the most commonly used features of SAS software plus a whole lot more! Topics cover the gamut of base SAS concepts, an introduction to SAS/STAT, and getting your data into SAS (including PROC IMPORT and PROC EXPORT). You'll find a generous amount of

Overview

Want to learn SAS software but you don't know where to start? This friendly easy-to-read guide gently introduces you to the most commonly used features of SAS software plus a whole lot more! Topics cover the gamut of base SAS concepts, an introduction to SAS/STAT, and getting your data into SAS (including PROC IMPORT and PROC EXPORT). You'll find a generous amount of information addressing basic SAS concepts (such as DATA and PROC steps); using the SAS windowing environment; working with permanent and temporary SAS data sets; inputting, and reading data; modifying data; introduction to the Output Delivery System (ODS), which enables you to generate HTML files for viewing with an Internet browser; introduction to macros; debugging SAS programs (including the DATA step debugger); and appendices to help programmers of other software languages become comfortable with the SAS programming language. Each topic is divided into an easy-to-use, self-contained, two-page layout complete with examples and graphics. This format enables new users to get up and running quickly, while the examples allow you to type in the program and see them work! More seasoned programmers will find this guide a useful reference to have on hand. Supports releases 7.00 and higher of SAS software.

Product Details

ISBN-13:
9781580252393
Publisher:
SAS Publishing
Publication date:
11/10/1998
Edition description:
Older Edition
Pages:
300
Product dimensions:
6.90(w) x 8.90(h) x 0.70(d)

Related Subjects

Table of Contents

Acknowledgmentsvii
Introducing SAS Softwareviii
About This Bookix
What's Newxii
Chapter 1Getting Started Using SAS Software
1.1The SAS Language2
1.2SAS Data Sets4
1.3The Two Parts of a SAS Program6
1.4The DATA Step's Built-in Loop8
1.5Choosing a Mode for Submitting SAS Programs10
1.6Windows and Commands in the SAS Windowing Environment12
1.7Submitting a Program in the SAS Windowing Environment14
1.8Reading the SAS Log16
1.9Viewing and Printing the SAS Output18
1.10Using SAS System Options20
Chapter 2Getting Your Data into the SAS System
2.1Methods for Getting Your Data into the SAS System24
2.2Telling SAS Where to Find Your Raw Data26
2.3Reading Raw Data Separated by Spaces28
2.4Reading Raw Data Arranged in Columns30
2.5Reading Raw Data Not in Standard Format32
2.6Selected Informats34
2.7Mixing Input Styles36
2.8Listing the Contents of a SAS Data Set38
2.9Temporary versus Permanent SAS Data Sets40
2.10Using LIBNAME Statements with Permanent SAS Data Sets42
2.11Entering Data with the Viewtable Window44
2.12Reading Multiple Lines of Raw Data per Observation46
2.13Reading Multiple Observations per Line of Raw Data48
2.14Reading Part of a Raw Data File50
2.15Controlling Input with Options in the INFILE Statement52
2.16Reading Delimited Files with the DATA Step54
2.17Reading Delimited Files with the IMPORT Procedure56
2.18Reading PC Database Files with DDE or the IMPORT Procedure58
2.19Writing Delimited Files with the EXPORT Procedure60
2.20Writing Raw Data Files with the DATA Step62
Chapter 3Working with Your Data
3.1Creating and Redefining Variables66
3.2Using SAS Functions68
3.3Selected SAS Functions70
3.4Using IF-THEN Statements72
3.5Grouping Observations with IF-THEN/ELSE Statements74
3.6Subsetting Your Data76
3.7Working with SAS Dates78
3.8Selected Date Informats, Functions, and Formats80
3.9Using the RETAIN and Sum Statements82
3.10Simplifying Programs with Arrays84
3.11Using Shortcuts for Lists of Variable Names86
Chapter 4Sorting, Printing, and Summarizing Your Data
4.1Using SAS Procedures90
4.2Subsetting in Procedures with the WHERE Statement92
4.3Sorting Your Data with PROC SORT94
4.4Printing Your Data with PROC PRINT96
4.5Changing the Appearance of Printed Values with Formats98
4.6Selected Standard Formats100
4.7Creating Your Own Formats Using PROC FORMAT102
4.8Writing Simple Custom Reports104
4.9Summarizing Your Data Using PROC MEANS106
4.10Writing Summary Statistics to a SAS Data Set108
4.11Counting Your Data with PROC FREQ110
4.12Producing Tabular Reports with PROC TABULATE112
4.13Adding Statistics to Tabular Reports114
4.14Visualizing Your Data with PROC PLOT116
4.15Formatting Procedure Output for Display on the Internet118
4.16Creating SAS Data Sets from Procedure Output120
Chapter 5Modifying and Combining SAS Data Sets
5.1Modifying a Data Set Using the SET Statement124
5.2Stacking Data Sets Using the SET Statement126
5.3Interleaving Data Sets Using the SET Statement128
5.4Combining Data Sets Using a One-to-One Match Merge130
5.5Combining Data Sets Using a One-to-Many Match Merge132
5.6Merging Summary Statistics with the Original Data134
5.7Combining a Grand Total with the Original Data136
5.8Updating a Master Data Set with Transactions138
5.9Using SAS Data Set Options140
5.10Tracking and Selecting Observations with the IN= Option142
5.11Writing Multiple Data Sets Using the OUTPUT Statement144
5.12Making Several Observations from One Using the OUTPUT Statement146
5.13Changing Observations to Variables Using PROC TRANSPOSE148
5.14Using SAS Automatic Variables150
Chapter 6Writing Flexible Code with the SAS Macro Facility
6.1Macro Concepts154
6.2Substituting Text with Macro Variables156
6.3Creating Modular Code with Macros158
6.4Adding Parameters to Macros160
6.5Writing Macros with Conditional Logic162
6.6Writing Data-Driven Programs with CALL SYMPUT164
6.7Debugging Macro Errors166
Chapter 7Using Basic Statistical Procedures
7.1Examining the Distribution of Data with PROC UNIVARIATE170
7.2Producing Statistics with PROC MEANS172
7.3Testing Categorical Data with PROC FREQ174
7.4Examining Correlations with PROC CORR176
7.5Using PROC REG for Simple Regression Analysis178
7.6Reading the Output of PROC REG180
7.7Using PROC ANOVA for One-Way Analysis of Variance182
7.8Reading the Output of PROC ANOVA184
7.9Introducing the Analyst Application186
Chapter 8Debugging Your SAS Programs
8.1Writing SAS Programs That Work190
8.2Fixing Programs That Don't Work192
8.3Searching for the Missing Semicolon194
8.4Note: INPUT Statement Reached Past the End of the Line196
8.5Note: Lost Card198
8.6Note: Invalid Data200
8.7Note: Missing Values Were Generated202
8.8Note: Numeric Values Have Been Converted to Character (or Vice Versa)204
8.9DATA Step Produces Wrong Results but No Error Message206
8.10The DATA Step Debugger208
8.11Error: Invalid Option, Error: The Option Is Not Recognized, or Error: Statement Is Not Valid210
8.12Note: Variable Is Uninitialized or Error: Variable Not Found212
8.13SAS Truncates a Character Variable214
8.14SAS Stops in the Middle of a Job216
8.15SAS Runs Out of Memory or Disk Space218
Appendices
AWhere to Go from Here222
BGetting Help from SAS Institute Technical Support224
CAn Overview of SAS Products226
DComing to SAS from SPSS228
EComing to SAS from a Programming Language234
FComing to SAS from SQL238
Index245

Customer Reviews

Average Review:

Post to your social network

     

Most Helpful Customer Reviews

See all customer reviews