Beyond Macro - Data-Driven Programming with CAS in SAS Viya
September 23, 2025: 10:30 AM - 11:30 AM
Intermediate and Advanced Coding Skills (IACS), Breakout Room #9

Authors Abstract
Mark Jordan With the adoption of SAS Viya, accelerating processing in CAS is becoming more common, and CAS speaks CASL. Seasoned SAS coders often use SAS macros to produce data-driven programs, automating tedious programming tasks. When working with CAS from the SAS Compute Server, it's important to know where, when, and how the CASL that executes is generated. Whatever your experience level, the interactions between SAS code, CASL, and Macro can be intimidating. This presentation aims to demystify that process. In this presentation I’ll discuss: - A brief review of code tokenization and macro triggers on the SAS Compute Server. - A brief introduction to CASL and CAS actions, including the effect of macro triggers in CAS programs. - An introduction to CASL variables and data types, including arrays, dictionaries, and result tables. - Practical techniques for advanced data-driven programming in CASL