Book description
Provides conceptual information about the SAS programming language, as well as step-by-step examples that illustrate the concepts.Table of contents
- Contents (1/2)
- Contents (2/2)
- About This Book
- What’s New in Step-by-Step Programming with Base SAS 9.4
- Accessibility Features of Step-by-Step Programming with Base SAS 9.4
- Introduction to the SAS System
-
Getting Your Data into Shape
-
Introduction to DATA Step Processing
- Introduction to DATA Step Processing
- The SAS Data Set: Your Key to the SAS System
- How the DATA Step Works: A Basic Introduction (1/2)
- How the DATA Step Works: A Basic Introduction (2/2)
- Supplying Information to Create a SAS Data Set (1/2)
-
Supplying Information to Create a SAS Data Set (2/2)
- Overview of Creating a SAS Data Set
- Telling SAS How to Read the Data: Styles of Input
- Reading Dates with Two-Digit and Four-Digit Year Values
- Defining Variables in SAS
- Indicating the Location of Your Data
- Using External Files in Your SAS Job
- Identifying an External File Directly
- Referencing an External File with a Fileref
- Summary
- Learning More
- Starting with Raw Data: The Basics
-
Starting with Raw Data: Beyond the Basics
- Introduction to Beyond the Basics with Raw Data
- Testing a Condition Before Creating an Observation
- Creating Multiple Observations from a Single Record
- Reading Multiple Records to Create a Single Observation (1/2)
- Reading Multiple Records to Create a Single Observation (2/2)
- Problem Solving: When an Input Record Unexpectedly Does Not Have Enough Values
- Summary
- Learning More
- Starting with SAS Data Sets
-
Introduction to DATA Step Processing
-
Basic Programming
- Understanding DATA Step Processing
- Working with Numeric Variables
-
Working with Character Variables
- Introduction to Working with Character Variables
- Input SAS Data Set for Examples
- Identifying Character Variables and Expressing Character Values
- Setting the Length of Character Variables
- Handling Missing Values
- Creating New Character Values
- Saving Storage Space by Treating Numbers as Characters
- Summary
- Learning More
- Acting on Selected Observations
- Creating Subsets of Observations
- Working with Grouped or Sorted Observations
- Using More Than One Observation in a Calculation
- Finding Shortcuts in Programming
- Working with Dates in the SAS System
-
Combining SAS Data Sets
- Methods of Combining SAS Data Sets
-
Concatenating SAS Data Sets
- Introduction to Concatenating SAS Data Sets
- Concatenating Data Sets with the SET Statement (1/4)
- Concatenating Data Sets with the SET Statement (2/4)
- Concatenating Data Sets with the SET Statement (3/4)
- Concatenating Data Sets with the SET Statement (4/4)
- Concatenating Data Sets By Using the APPEND Procedure
- Choosing between the SET Statement and the APPEND Procedure
- Summary
- Learning More
- Interleaving SAS Data Sets
-
Merging SAS Data Sets
- Introduction to Merging SAS Data Sets
- Understanding the MERGE Statement
- One-to-One Merging
- Match-Merging (1/3)
- Match-Merging (2/3)
-
Match-Merging (3/3)
- Merging with a BY Statement
- Input SAS Data Set for Examples
- The Program
- Explanation
- Match-Merging Data Sets with Multiple Observations in a BY Group
- Match-Merging Data Sets with Dropped Variables
- Match-Merging Data Sets with the IN= Data Set Option
- Match-Merging Data Sets with the Same Variables
- Match-Merging Data Sets That Lack a Common Variable
- Choosing between One-to-One Merging and Match-Merging
- Summary
- Learning More
- Updating SAS Data Sets
- Modifying SAS Data Sets
- Conditionally Processing Observations from Multiple SAS Data Sets
-
Debugging SAS Programs
- Analyzing Your SAS Session with the SAS Log
-
Directing SAS Output and the SAS Log
- Introduction to Directing SAS Output and the SAS Log
- Input File and SAS Data Set for Examples
- Routing the Output and the SAS Log with PROC PRINTTO
- Storing the Output and the SAS Log in the SAS Windowing Environment
- Redefining the Default Destination in a Batch or Noninteractive Environment
- Summary
- Learning More
- Diagnosing and Avoiding Errors
- Finding Logic Errors in Your Program
-
Producing Reports
-
Producing Detail Reports with the PRINT Procedure
- Introduction to Producing Reports with the PRINT Procedure
- Input File and SAS Data Sets for Examples
- Creating Simple Reports (1/2)
- Creating Simple Reports (2/2)
- Creating Enhanced Reports (1/3)
- Creating Enhanced Reports (2/3)
- Creating Enhanced Reports (3/3)
- Creating Customized Reports (1/2)
- Creating Customized Reports (2/2)
- Making Your Reports Easy to Change
- Summary
- Learning More
-
Creating Summary Tables with the TABULATE Procedure
- Introduction to Creating Summary Tables with the TABULATE Procedure
- Understanding Summary Table Design
- Understanding the Basics of the TABULATE Procedure
- Input File and SAS Data Set for Examples
- Creating Simple Summary Tables
- Creating More Sophisticated Summary Tables (1/3)
- Creating More Sophisticated Summary Tables (2/3)
-
Creating More Sophisticated Summary Tables (3/3)
- Creating Hierarchical Tables to Report on Subgroups
- Formatting Output
- Calculating Descriptive Statistics
- Reporting on Multiple Statistics
- Reducing Code and Applying a Single Label to Multiple Elements
- Getting Summaries for All Variables
- Defining Labels
- Using Styles and the Output Delivery System
- Ordering Class Variables
- Summary
- Learning More
-
Creating Detail and Summary Reports with the REPORT Procedure
- Introduction to Creating Detail and Summary Reports with the REPORT Procedure
- Understanding How to Construct a Report
- Input File and SAS Data Set for Examples
- Creating Simple Reports (1/2)
- Creating Simple Reports (2/2)
- Creating More Sophisticated Reports (1/2)
- Creating More Sophisticated Reports (2/2)
- Summary
- Learning More
-
Producing Detail Reports with the PRINT Procedure
-
Producing Plots and Charts
- Plotting the Relationship between Variables
-
Producing Charts to Summarize Variables
- Introduction to Producing Charts to Summarize Variables
- Understanding the Charting Tools
- Input File and SAS Data Set for Examples
- Charting Frequencies with the CHART Procedure (1/2)
- Charting Frequencies with the CHART Procedure (2/2)
- Customizing Frequency Charts (1/3)
- Customizing Frequency Charts (2/3)
- Customizing Frequency Charts (3/3)
- Creating High-Resolution Histograms (1/3)
- Creating High-Resolution Histograms (2/3)
- Creating High-Resolution Histograms (3/3)
- Summary
- Learning More
-
Designing Your Own Output
- Writing Lines to the SAS Log or to an Output File
-
Understanding and Customizing SAS Output: The Basics
- Introduction to the Basics of Understanding and Customizing SAS Output
- Understanding Output
- Input SAS Data Set for Examples
- Locating Procedure Output
- Making Output Informative (1/2)
- Making Output Informative (2/2)
- Controlling Output Appearance of Listing Output
- Controlling the Appearance of Pages (1/3)
- Controlling the Appearance of Pages (2/3)
- Controlling the Appearance of Pages (3/3)
- Representing Missing Values
- Summary
- Learning More
-
Understanding and Customizing SAS Output: The Output Delivery System (ODS)
- Introduction to Customizing SAS Output By Using the Output Delivery System
- Input Data Set for Examples
- Understanding ODS Output Formats and Destinations
- Selecting an Output Format
- Creating Formatted Output (1/3)
- Creating Formatted Output (2/3)
- Creating Formatted Output (3/3)
- Selecting the Output That You Want to Format (1/2)
- Selecting the Output That You Want to Format (2/2)
- Customizing ODS Output (1/3)
- Customizing ODS Output (2/3)
- Customizing ODS Output (3/3)
- Storing Links to ODS Output
- Summary
- Learning More
-
Storing and Managing Data in SAS Files
- Understanding SAS Libraries
- Managing SAS Libraries
- Getting Information about Your SAS Data Sets
- Modifying SAS Data Set Names and Variable Attributes
- Copying, Moving, and Deleting SAS Data Sets
-
Understanding Your SAS Environment
- Introducing the SAS Environment
-
Using the SAS Windowing Environment
- Introduction to Using the SAS Windowing Environment
- Getting Organized
- Finding Online Help
- Using SAS Windowing Environment Command Types
- Working with SAS Windows
- Working with Text
- Working with Files
- Working with SAS Programs (1/2)
- Working with SAS Programs (2/2)
- Working with Output (1/2)
- Working with Output (2/2)
- Summary
- Learning More
- Customizing the SAS Environment
- Appendix
- Glossary (1/4)
- Glossary (2/4)
- Glossary (3/4)
- Glossary (4/4)
- Index (1/7)
- Index (2/7)
- Index (3/7)
- Index (4/7)
- Index (5/7)
- Index (6/7)
- Index (7/7)
Product information
- Title: Step-by-Step Programming with Base SAS 9.4, Second Edition, 2nd Edition
- Author(s):
- Release date: January 2017
- Publisher(s): SAS Institute
- ISBN: 9781629608068
You might also like
book
Step-by-Step Programming with Base SAS 9.4
Provides conceptual information about the SAS programming language, as well as step-by-step examples that illustrate the …
book
SAS 9.4 Macro Language, 5th Edition
Explains how to increase the modularity, flexibility, and maintainability of your SAS code using the SAS …
book
Base SAS 9.4 Procedures Guide, Fourth Edition, 4th Edition
Contains the complete reference for all Base SAS procedures. Provides information about what each procedure does …
book
Base SAS 9.4 Procedures Guide, Second Edition
Contains the complete reference for all Base SAS procedures. Provides information about what each procedure does …