O'Reilly logo

SAS Macro Language Magic by Robert Virgile

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 5: CALL SYMPUT

5.1 Leading and Trailing Blanks

5.2 A Similar Lesson, Using Recursion

5.3 Test Your Skill

5.3.1 Programming Challenge #4a

5.3.2 Solution

5.3.3 Programming Challenge #4b

5.3.4 Solution

5.3.5 Programming Challenge #4c

5.3.6 Solution

5.4 Function Shifts in the Real World

5.5 A Key Issue: Extra Blanks

A macro variable that is only two characters long can take on 65,536 different values. When the length of a macro variable reaches 65,534 characters, the number of values reaches a staggering level: 256 ** 65,534. With so many possible values, some of them would certainly cause trouble if they found their way into a program. And CALL SYMPUT is the best tool for causing such trouble. It can assign any conceivable value to a macro ...

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