DOCUMENTATION
  • Software
    • Software
    • SAS Viya
    • Industries
    • Solutions
    • Products
  • Learn
    • Learn
    • Training
    • Certification
    • Academics
    • Books
    • Video Tutorials
  • Support
    • Support
    • Communities
    • Documentation
    • Developers
    • Support & Services
    • User Groups
  • About Us
    • About Us
    • Why SAS?
    • Company
    • Careers
    • Newsroom
    • Events
    • Contact Us
  • Explore
    • Explore
    • Try & Buy
    • Why SAS?
    • Customer Stories
    • Partners
    • Consulting
  • Software
  • SAS Viya
  • Industries
  • Solutions
  • Products
  • Learn
  • Training
  • Certification
  • Academics
  • Books
  • Video Tutorials
  • Support
  • Communities
  • Documentation
  • Developers
  • Support & Services
  • User Groups
  • About Us
  • Why SAS?
  • Company
  • Careers
  • Newsroom
  • Events
  • Contact Us
  • Explore
  • Try & Buy
  • Why SAS?
  • Customer Stories
  • Partners
  • Consulting
  • Contact Us
Sign In

Create Profile

My SAS

Get access to My SAS, trials, communities and more.

SAS Sites

sas.com
Support
Blogs
Communities
Developer
Curiosity
Videos

Documentation

Learn
Brand
PartnerNet
Merchandise
SAS® Help Center
SAS® Viya® Platform Programming Documentation
2025.11
|PDF 
Feedback
 
This documentation is for a version of the software that is not covered by Standard Support. Select a different version from the version selector in the banner, or access the latest documentation.
  • Welcome to SAS Programming Documentation
  • What's New
  • Learning SAS Viya Platform Programming
    • SAS Viya Platform Programming: Getting Started
    • SAS Programmer’s Guide: Essentials
    • Getting Started with R for CAS
    • Getting Started with Lua for CAS
    • Getting Started with Java for CAS
    • Getting Started with Python for CAS
    • CAS Fundamentals
    • Getting Started with Machine Learning
    • Get Started with SAS
    • SAS Programming Glossary
  • Syntax Quick Links
  • Python Programming
  • Advanced Analytics
  • Data Access
  • Cloud Analytic Services
  • SAS Language Reference
  • Migrating to UTF-8
  • Example Data Sets
  • SAS Code Debugging
  • Output and Graphics
  • In-Database Technologies
  • Security and Administration
  • SAS Servers
  • Using the batch Plug-In for the SAS Viya CLI
  • Accessibility on the SAS Viya Platform
  • SAS Data Quality
  • SAS Job Execution Web Application
  • SAS Studio
  • SAS Visual Analytics
  • SAS Viya Platform: Administration
  • SAS Viya Platform Operations
  • Other Resources
SAS Programmer’s Guide: Essentials
 

SAS® Programmer’s Guide: Essentials

About This Book
Introduction
The SAS Language
SAS Viya Platform
SAS Syntax
Words and Names
Variables
Expressions
Constants
Operators
Dates and Times
Component Objects
SAS Comments
Accessing Data
SAS Libraries
SAS Engines
SAS Data Sets
Raw Data
Database and PC Files
SAS Views
SAS Dictionary Tables
Manipulating Data
Grouping Data
WHERE Expression Processing
Loops and Conditionals
Combining Data
Using Indexes
Using Arrays
Debugging Errors
Optimizing System Performance
Using Parallel Processing
Creating Output
Output
Printing
Managing Files
Protecting Files
Repairing SAS Files
Compressing SAS Data Sets
Moving SAS Files
Cross-Environment Data Access
Managing SAS Catalogs
Other SAS Features
The SAS Registry
Industry Protocols Used in SAS
Appendixes
Data Sets Used in Examples
Using the MODIFY Statement and KEY= Option
Description of Column-Binary Data Storage
Understanding How the DATA Step Works
Last updated: August 14, 2026
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved