Skip to main Content

SAS Macro

Selected option:
Public
Other options:
On-Site
Cost per delegate:
£650.00
Duration:
2 Days

Audience

SAS Programmers seeking to extend their Programming Skills.

Prerequisites

To take this course, you should have taken the SAS Fundamentals course or equivalent and have at least 6 months SAS programming experience.

Objectives

This course covers the SAS Macro Language in depth. The theory and methods of the Macro facility are discussed through examples and applications. 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 Macro Language.

Topics

M1 lntroduction

  • Common Coding Tasks
  • General Strategy
  • Workshop Session

M6 The Data Step Interface

  • Functions and Call Routines
  • SYMGET
  • Call SYMPUT and Call SYMPUTX
  • Workshop Session

M2 Variable Code

  • Macro Variables
  • Resolution Considerations
  • Macro Variables vs. Data Step Variables
  • Workshop Session

M7 Special Characters

  • Evaluations
  • The Quoting Functions
  • Workshop Session

M3 Code Bundles

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

M8 Working with Macros

  • The Autocall Library
  • The Stored Compiled Macro Facility
  • SAS System Options
  • Writing Successful Macros
  • Workshop Session

M4 Behind the Scenes

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

M9 Windows and Menus (Optional)

  • Window Definition with %Window
  • %Display
  • Examples
  • Workshop Session

M5 Code Generation

  • Directing Macro Execution
  • Conditional Termination of Macro Flow
  • String Manipulation
  • %SYSFUNC and %QSYSFUNC
  • Debugging
  • Workshop Session

Public Booking

February 2012 March 2012 April 2012
20th - 21st 19th - 20th 19th - 20th