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® 9.4 and SAS® Viya® 3.5 Programming Documentation
SAS 9.4 / Viya 3.5
|PDF 
Feedback
 
  • Welcome to SAS Programming Documentation for SAS® 9.4 and SAS® Viya® 3.5
  • What's New
  • Syntax Quick Links
  • SAS Viya Programming
  • Data Access
  • SAS Analytics 15.4
  • Base SAS Procedures
  • DATA Step Programming
  • SAS Code Debugging
  • Global Statements
  • System Options
  • SAS Component Objects
  • DS2 Programming
    • DS2 Reference
    • DS2 Programmer’s Guide
  • FedSQL Programming
  • Macro Language Reference
  • Output and Graphics
  • Operating Environments
  • Moving and Accessing SAS Files
  • In-Database Technologies
  • Metadata
  • SAS Interface to Application Response Measurement (ARM)
  • Security
  • SAS Servers
  • SAS Data Quality
  • Learning SAS Programming
  • Accessibility for Base
  • SAS Visual Analytics
  • SAS Studio
  • SAS Enterprise Guide
  • SAS 9.4 Administration
  • SAS Viya: Administration
  • Other Resources
DS2 Reference
 

SAS® 9.4 DS2 Language Reference, Sixth Edition

Whatʼs New
Introduction
Introduction to the DS2 Language
Getting Started
DS2 and the DATA Step
Learning by Example: Using the Sample Programs
Building Blocks of DS2 Programs
Understanding DS2 Methods and Packages
DS2 Language Reference
DS2 Formats
DS2 Functions
DS2 Informats
DS2 Operators
DS2 Statements
DS2 System Methods
DS2 System Options
DS2 Table Options
DS2 FCMP Package Methods, Operators, and Statements
DS2 Hash and Hash Iterator Package Attributes, Methods, Operators, and Statements
DS2 HTTP Package Methods, Operators, and Statements
DS2 JSON Package Methods, Operators, and Statements
DS2 Logger Package Methods, Operators, and Statements
DS2 Matrix Package Methods, Operators, and Statements
DS2 PCRXFIND Package Methods, Operators, and Statements
DS2 PCRXREPLACE Package Methods, Operators, and Statements
DS2 SQLSTMT Package Methods, Operators, and Statements
DS2 TZ Package Methods, Operators, and Statements
Appendixes
Data Type Reference
DS2 Expressions
DS2 Example Programs
Last updated: September 11, 2026
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved