Skip to main content
O'Reilly home
    • Sign In
    • Try Now
    • Teams
      • For business
      • For government
      • For higher ed
    • Individuals
    • Features
      • All features
      • Courses
      • Certifications
      • Interactive learning
      • Live events
      • Answers
      • Insights reporting
    • Blog
    • Content sponsorship

SAS® Certification Prep Guide: Base Programming for SAS®9 by

Get full access to SAS® Certification Prep Guide: Base Programming for SAS®9 and 60K+ other titles, with a free 10-day trial of O'Reilly.

There are also live events, courses curated by job role, and more.

Start your free trial

Chapter 6. Understanding DATA Step Processing

Overview

156

Introduction

156

Objectives

157

Writing Basic DATA Steps

157

How SAS Processes Programs

158

Compilation Phase

159

Input Buffer

159

Program Data Vector

160

Syntax Checking

160

Data Set Variables

160

Descriptor Portion of the SAS Data Set

161

Summary of the Compilation Phase

163

Execution Phase

164

Initializing Variables

165

Input Data

166

Input Pointer

166

End of the DATA Step

168

Iterations of the DATA Step

170

End-of-File Marker

172

Summary of the Execution Phase

174

End of the Execution Phase

175

Debugging a DATA Step

175

Diagnosing Errors in the Compilation Phase

175

Diagnosing Errors in the Execution Phase

176

Testing Your Programs

180

Writing a NULL Data Set

180

Limiting Observations

181

PUT Statement

181

Summary

184

Text Summary

184

Points ...

Get SAS® Certification Prep Guide: Base Programming for SAS®9 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Start your free trial

About O’Reilly

  • Teach/write/train
  • Careers
  • Press releases
  • Media coverage
  • Community partners
  • Affiliate program
  • Submit an RFP
  • Diversity
  • O’Reilly for marketers

Support

  • Contact us
  • Newsletters
  • Privacy policy
linkedin-logo youtube-logo

International

  • Australia & New Zealand
  • Hong Kong & Taiwan
  • India
  • Indonesia
  • Japan

Download the O’Reilly App

Take O’Reilly with you and learn anywhere, anytime on your phone and tablet.

Apple app store Google play store

Watch on your big screen

View all O’Reilly videos, Superstream events, and Meet the Expert sessions on your home TV.

Roku Payers and TVs Amazon appstore

Do not sell my personal information

O'Reilly home

© 2023, O’Reilly Media, Inc. All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.

Terms of service • Privacy policy • Editorial independence

Don’t leave empty-handed

Download a free report before you go.

Cover of DevOps and Business

DevOps and Business

Get it now
Cover of Multicloud Architecture Migration and Security

Multicloud Architecture Migration and Security

Get it now
Cover of Machine Learning at Enterprise Scale

Machine Learning at Enterprise Scale

Get it now

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

Start your free trial Become a member now