Chapter 7: Macro Quoting

7.1 Why Quoting is Necessary

7.2 Why Quoting is a Nightmare

7.3 What Quoting Really Does

7.4 Peeking Inside the Black Box of Quoting

7.5 The Final Word on Quoting

Some of life’s pleasures are bittersweet. Sometimes you have to pretend to enjoy the meal that your child prepared. Sometimes your appearance in the mirror demands that you visit the gym. And sometimes you have to learn macro language quoting. It’s always nice to learn something new, but it’s not always pleasant.

7.1 Why Quoting is Necessary

All four statements below run into trouble.

%let feature = '&trait';

The intent: The macro variable should resolve despite being in single quotes. Actually, single quotes prevent all macro activity, including macro variable ...

Get SAS Macro Language Magic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.