You are on page 1of 1

Introduction to the SAS Macro Language

Apply the power and flexibility of the SAS Macro Language to your projects and programs by attending this highimpact session. For experienced SAS programmers new to Macro capabilities and techniques.
After taking this seminar you will be able to:
Typical Presentation Formats Two full days in classroom with hands-on exercises One full day in classroom (no hands on exercises) Two half-days online (no hands on exercises)

Overview
This course is designed for the experienced SAS programmer who is new to the Macro Language. We start at the basics and cover the fundamentals necessary to start applying SAS macros in your programs. By the end of the class you will understand how the Macro Language works, what the Macro Symbol Table is and how to values stored in it, how the SAS System uses Macro Variables, key Macro Language concepts, important SAS Macro Language Functions, and how to invoke Macros in your programs.

Intended Audience
This session is suited for the SAS user who already has a basic understanding of the Data Step and Procedure Steps, and who is new to the Macro Language facility in SAS System software. It is a beginning-level course that assumes no prior understanding of the SAS Macro Language. It is also suitable for SAS users who want to understand the Macros found in programs then have "inherited" from other programmers.

Use automatic macro variables Assign values to your own macro variables Reference macro variables in your programs Take advantage of powerful macro language functions Understand the relationship between the SAS macro language and the programming language Write re-usable, flexible programs requiring limited user intervention to run Write conditional macro language commands Resolve and display macro variables in your programs and output Find and correct errors in your macros Reduce the work needed to create and run production programs.

Seminar Topics:
Introduction
Macro Facility Overview and Terminology Macro Execution Phases Referencing Environments

Defining and Using Macro Variables


Naming, Defining and Using Macro Variables Displaying and Resolving Macro Variables Automatic Macro Variables Defining and Invoking A Macro System Options Used With The Macro Facility Display Manager Command Line Macros Statement and Command Style Macros Introducing Macro Parameters Positional Parameters and Keyword Parameters Using Keyword and Positional Parameters Together Macros That Invoke Macros Using Conditional Macro Statements Iterative Execution Using Macro Statements Macro Program Statements Using The SYMPUT Routine Using a SAS Data Set Using a Flat File && Macro Variables and Dynamic Coding Moving Text From Macro to DATA Step Variables Character Functions Evaluation Functions

Defining and Using Macros

Macro Parameters

Program Control Through Macros

Interfacing With The DATA Step

Using Macro Functions

Contact Sierra Data Science For More Information: Email: training@sierradatascience.com Phone: (707) 996 7380 www.SierraDataScience.com

Note: SAS is a registered trademark of SAS Institute, Inc. in the USA and other countries. indicates USA registration. This document copyright 2011 Sierra Data Science. All rights reserved Aug 2012

You might also like