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
    • SAS/ETS
    • SAS/IML
      • SAS/IML User's Guide
        • What’s New in SAS/IML 15.4
        • Introduction to SAS/IML Software
        • Understanding the SAS/IML Language
        • Tutorial
        • Working with Matrices
        • Programming Statements
        • Working with SAS Data Sets
        • File Access
        • Mixed-Type Tables
        • Lists and Data Structures
        • Packages
        • General Statistics Examples
        • Submitting SAS Statements
        • Calling Functions in the R Language
        • Robust Regression Examples
        • Time Series Analysis and Examples
        • Nonlinear Optimization Examples
        • Statistical Graphics
        • Storage Features
        • Using SAS/IML Software to Generate SAS/IML Statements
        • Wavelet Analysis
        • Genetic Algorithms
        • Sparse Matrix Algorithms
        • Further Notes
        • Language Reference
        • Module Library
      • SAS/IML Studio: User's Guide
      • SAS/IML Studio for SAS/STAT Users
    • SAS/OR
    • SAS/QC
    • SAS/STAT
    • SAS Forecast Server
    • SAS Text Miner: High-Performance Procedures
    • SAS Enterprise Miner: High-Performance Procedures
    • OPTGRAPH Procedure
  • Base SAS Procedures
  • DATA Step Programming
  • SAS Code Debugging
  • Global Statements
  • System Options
  • SAS Component Objects
  • DS2 Programming
  • 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
SAS/IML User's Guide
 

Programming Statements

  • Overview of Programming Statements
  • Selection Statements
  • Compound Statements
  • Iteration Statements
  • Jump Statements
  • Statements That Define and Execute Modules
  • Termination Statements
Last updated: April 11, 2025
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved