This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 5 15 15 CONCLUSIONS
There is no doubt that macros can be very complicated, but don't let that scare you off. Learning to use macro variables and incorporating simple macros into your programs can also make your work a lot easier. Get your feet wet by starting with adding macro variables to your programs. Then when you get the hang of macro variables, start building simple macros. To avoid mangling your macros, always write them one piece at a time. First write your program in standard SAS code. When that is working and bug-free, then add your %MACRO and %MEND statements. When that is working, then add your parameters, if any, one at a time. 12 SUGI 29 Tutorials REFERENCES
Delwiche, Lora D. and Sus an J. Slaughter (2003). The Little SAS Book: A Primer, Third Edition. SAS Institute, Cary, NC. SUGGESTED READING
Carpenter, Art (1998). Carpenter's Complete Guide to the SAS Macro Language. SAS Institute, Cary, NC. ABOUT THE AUTHORS
Susan Slaughter and Lora Delwiche are also the authors of The Little SAS Book: A Primer published by SAS Institute, and may be contacted at: Susan J. Slaughter Lora D. Delwiche (530) 756-8434 (530) 795-3772 SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration.
1 There are a few exceptions. %INCLUDE, for example, is not part of the macro facility despite its percent sign prefix. And it is possible, though rather confusing, to write macros that do not start with a percent sign. 13...
View Full Document
This note was uploaded on 03/21/2013 for the course AMS 597 taught by Professor Xing during the Spring '11 term at SUNY Stony Brook.
- Spring '11