COVID-19 Response at

Read what we're doing...

Handbook of SAS (R) DATA Step Programming


Product Description
Product Details

Table of Contents

Introduction to SAS
SAS Program and Language
Reading DATA into SAS
Creating and Modifying Variables
Base SAS Procedures
Subsetting Data by Selecting Variables
Changing the Appearance of Data

Creating Variables Conditionally
The IF-THEN/ELSE Statement
Executing One of Several Statements
Modifying the IF-THEN/ELSE Statement with the Assignment Statement

Understanding How the DATA Step Works
DATA Step Processing Overview
Retaining the Value of Newly Created Variables
Conditional Processing in the DATA Step
Debugging Techniques

BY-Group Processing in the DATA Step
Introduction to BY-Group Processing
Applications Utilizing BY-Group Processing

Writing Loops in the DATA Step
Implicit and Explicit Loops
Utilizing Loops to Create Samples
Using Looping to Read a List of External Files

Array Processing
Introduction to Array Processing
Functions and Operators Related to Array Processing
Some Array Applications
Applications That Use Multi-Dimensional Arrays

Combining Data Sets
Vertically Combining Data Sets
Horizontally Combining Data Sets

Data Input and Output
Introduction to Reading and Writing Text Files
Reading Text Files
Creating Text Files

Data Step Functions
Introduction to Functions and CALL Routines
Date and Time Functions
Character Variables
Functions for Converting Variable Types

Useful SAS Procedures
Using the SORT Procedure to Eliminate Duplicate Observations
Using the COMPARE Procedure to Compare the Contents of Two Data Sets
Restructuring Data Sets Using the TRANSPOSE Procedure
Creating the User-Defined Format Using the FORMAT Procedure
Using the OPTIONS Procedure to Modify SAS System Options


Exercises appear at the end of each chapter.

About the Author

Arthur Li is a biostatistician at the City of Hope National Medical Center in Los Angeles County, California. He is also a part-time statistical programming instructor at the University of Southern California, where he received an MS in biostatistics. He often gives presentations and seminars on DATA step programming and statistical analysis using SAS software at SAS conferences.


"...covers a good number of topics attractive to SAS users. The strength of the book is a simple and straight-to-the-point approach taken by the author. Examples and a few exercises appearing at the conclusion of each chapter are very helpful in understanding the topics. It is a good source as a supplement to a textbook or a statistics course using SAS. ... All of the code is written and explained very efficiently. Anyone interested in the topic will find this handbook very easy to follow."
-The American Statistician, May 2014

"Handbook of SAS DATA Step Programming provides a thorough introduction to the statements and functionalities of the SAS DATA step. The book can be used as an introductory tutorial for beginning SAS programmers or as a reference book for experienced users. ... Many users of DATA step have a strong statistical background, but not all of them really try to understand DATA step as a programming language. The Handbook covers this gap and helps statisticians improving their programming efficiency using SAS DATA step."
-Journal of Statistical Software, January 2014

Ask a Question About this Product More...
Write your question below:
How Fishpond Works
Fishpond works with suppliers all over the world to bring you a huge selection of products, really great prices, and delivery included on over 25 million products that we sell. We do our best every day to make Fishpond an awesome place for customers to shop and get what they want — all at the best prices online.
Webmasters, Bloggers & Website Owners
You can earn a 8% commission by selling Handbook of SAS (R) DATA Step Programming on your website. It's easy to get started - we will give you example code. After you're set-up, your website can earn you money while you work, play or even sleep! You should start right now!
Authors / Publishers
Are you the Author or Publisher of a book? Or the manufacturer of one of the millions of products that we sell. You can improve sales and grow your revenue by submitting additional information on this title. The better the information we have about a product, the more we will sell!
Item ships from and is sold by, Inc.
Back to top