O'Reilly logo

Learning SAS by Example by Ron Cody

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 25. Introducing the SAS Macro Language

25.1

Introduction

522

25.2

Macro Variables: What Are They?

522

25.3

Some Built-In Macro Variables

523

25.4

Assigning Values to Macro Variables with a %LET Statement

524

25.5

Demonstrating a Simple Macro

525

25.6

A Word about Tokens

527

25.7

Another Example of Using a Macro Variable as a Prefix

529

25.8

Using a Macro Variable to Transfer a Value between DATA Steps

530

25.9

Problems

532

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 simple macros. Macros are particularly useful if you want to make your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required