Updates for SAS Macro Programming Made Easy, Second Edition
|
SAS Macro Programming Made Easy, Second Edition was written using SAS 9. If you are using SAS 8, you will need to make some modifications to the code.
For example, in SAS 9 the lengths of variable names, data set names, macro variable names, and macro program names can be greater than 8 characters.
As you can see in the DATA step that creates the sample data set, the variable names BOOKTITLE, PUBLISHER, SALEPRICE, and LISTPRICE will have to be
shortened to run under SAS 8. Additionally, the author has used some functions newly available in SAS 9, including CATS and CATX, which concatenate
strings of text. Another function, CALL SYMPUTX, is also new in SAS 9.
There is an excellent paper available on the SAS website that describes how you can upgrade your macro code to use SAS 9: This paper is useful in understanding the macro facility features that you can and cannot use in Version 8. Also, refer to the SAS 9 online documentation for features newly available that you may not be familiar with such as CATS and CATX. |