You are on page 1of 9

SAS Macro Language 1: Essentials

Copyright 2010, SAS Institute Inc. All rights reserved.

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 1 Introduction
1.1
1.2
1.3
1.4
1.5

Overview of SAS Foundation


Course Logistics
Purpose of the Macro Facility
Program Flow
Solutions

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 2 Macro Variables


2.1
2.2
2.3
2.4
2.5
2.6
2.7

Introduction to Macro Variables


Automatic Macro Variables
Macro Variable References
User-Defined Macro Variables
Delimiting Macro Variable References
Macro Functions
Solutions

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 3 Macro Definitions


3.1
3.2
3.3

Defining and Calling a Macro


Macro Parameters
Solutions

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 4 DATA Step and SQL Interfaces


4.1
4.2
4.3
4.4

Creating Macro Variables in the DATA Step


Indirect References to Macro Variables
Creating Macro Variables in SQL
Solutions

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 5 Macro Programs


5.1
5.2
5.3
5.4
5.5

Conditional Processing
Parameter Validation
Iterative Processing
Global and Local Symbol Tables
Solutions

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Chapter 6 Learning More


6.1
6.2

SAS Resources
Beyond This Course

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

Appendix A Supplemental Materials


A.1

Program Flow

C op yr i g ht 2 01 2 , S A S I n s t i t u t e I n c . Al l r i g h ts r es er ved.

SAS and all other SAS Institute Inc. product or service names are registered
trademarks or trademarks of SAS Institute Inc. in the USA and other countries.
indicates USA registration. Other brand and product names are trademarks of
their respective companies. Copyright 2013 SAS Institute Inc. Cary, NC, USA.
All rights reserved. Prepared 12MAR2013.
9

You might also like