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
LTS 2024.03
|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
  • Syntax Quick Links
  • Advanced Analytics
    • Machine Learning
    • Econometrics
    • SAS Enterprise Miner: High-Performance Procedures
    • Forecasting
    • IML (Interactive Matrix Language)
      • SAS IML
        • SAS IML Programming Guide
        • SAS IML: Language Reference
          • Introduction
          • Syntax Supported by the IML Procedure and the iml Action
          • Syntax Supported Only by the IML Procedure
          • Syntax Supported Only by the iml Action
          • Operators
          • DATA Step Functions Accessible from SAS IML Software
      • SAS/IML
    • Optimization and Simulation
    • Quality Control
    • Statistics
    • Text 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
  • SAS Data Quality
  • SAS Job Execution Web Application
  • Accessibility on the SAS Viya Platform
  • SAS Visual Analytics
  • SAS Viya Platform: Administration
  • SAS Viya Platform Operations
  • SAS Studio
  • Other Resources
SAS IML: Language Reference
 

Operators

  • Addition Operator:   +
  • Comparison Operators: <,   <=,   >,   >=,   =,   ^=
  • Concatenation Operator, Horizontal:   ||
  • Concatenation Operator, Vertical:   //
  • Direct Product Operator:   @
  • Division Operator:   /
  • Element Maximum Operator:   <>
  • Element Minimum Operator:   ><
  • Index Creation Operator:   :
  • List Creation Operator:   [  ] 
  • List Item Operator:  $ 
  • List Sublist Operator:  [ ] 
  • Logical Operators:   &,   |,   ^
  • Multiplication Operator, Elementwise:   #
  • Multiplication Operator, Matrix:   *
  • Power Operator, Elementwise:   ##
  • Power Operator, Matrix:   **
  • Sign Reversal Operator:   –
  • Subscripts:   [ ]
  • Subscript Reduction:   [ ]
  • Subtraction Operator:   –
  • Transpose Operator:  `
  • References

This section describes all operators that are available in the SAS IML product. Each operator is supported by the iml action and by the IML procedure.

In addition to the matrix operators described in this section, the action and procedure support the subscript reduction operators that are described in the SAS/IML User's Guide.

Last updated: March 08, 2024
Privacy Statement Terms of Use 
Copyright © SAS Institute Inc. All Rights Reserved