SAS Macro

Standard Course
£800 +VAT
per delegate
Course duration: 2 Days

You will be able to write your own Macros, understand the structure of the SAS Macro Language and deal with the various functions available in the SAS Macro Language.

Who is it for?

SAS users seeking to extend their Programming Skills.

Prerequisites

Ideally the delegate will have attended the SAS Fundamentals course or have an equivalent level of competence. We recommend that attendees have three to six months of regular SAS programming experience to gain the most benefit from this course.

What you will learn

  • Common Coding Tasks
  • General Strategy

  • Introduction
  • Automatic Macro Variables
  • Determining the Values of Macro Variables
  • User-Defined Macro Variables
  • Resolution Considerations
  • Macro Variables vs. DATA Step Variables

  • Definition of a Macro
  • Passing Parameters
  • Compilation and Execution Phases

  • Symbol Table Rules
  • Deleting Macro Variables
  • Nested Macros
  • GLOBAL and LOCAL Variables

  • Directing Macro Execution
  • Conditional Termination of Macro Flow
  • String Manipulation
  • %SYSFUNC and %QSYSFUNC and %SYSCALL

  • Functions and Call Routines
  • SYMGET
  • Call SYMPUT

  • Introduction
  • Numeric Evaluations
  • Introduction to Quoting Functions

  • Using the %INCLUDE Statement
  • The Autocall Library
  • How SAS Resolves Macro Calls
  • Writing Successful Macros

SAS Macro Course Dates

Our courses are live instructor-led and can be attended virtually or at our office.

  • Monday 21 October 2024 - Tuesday 22 October 2024
    Book now
Back to Training

Talk to us about how we can help