Chapter 25: Introducing the SAS Macro Language

25.1  Introduction

25.2  Macro Variables: What Are They?

25.3  Some Built-In Macro Variables

25.4  Assigning Values to Macro Variables with a %LET Statement

25.5  Demonstrating a Simple Macro

25.6  Describing Positional and Keyword Macro Parameters

25.7  A Word about Tokens

25.8  Another Example of Using a Macro Variable as a Prefix

25.9  Using a Macro Variable to Transfer a Value between DATA Steps

25.10  Problems

 

25.1  Introduction

Although the SAS macro language is usually thought of as an advanced topic, there are aspects of this language that are useful and easy to use, even to the beginning or intermediate SAS programmer. This chapter gives you the tools to use macro variables and write ...

Get Learning SAS by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.