The SAS
© macro language in the
SAS© Viya™ platform operates within the SAS
© session. Its primary function is the generation of SAS
© code, which can then be sent to the
Cloud Analytic Services (CAS) server for processing. This means that while macros can be used to dynamically build programs that interact with CAS, the execution of the macro instructions themselves (e.g., %DO loops, %IF conditions) occurs client-side, in the traditional SAS
© session. This distinction is crucial for understanding where processing logic is applied and how to optimize application performance on Viya
™.