Base SAS
Macro Language
The macro facility is a tool for extending and customizing SAS and for reducing the amount of text that you must enter to do common tasks. The macro facility enables you to assign a name to character strings or groups of SAS programming statements. You can work with the names that you created rather than with the text itself. When you use a macro name in a SAS program or from a command prompt, the macro facility generates SAS statements and commands as needed. The rest of SAS receives those statements and uses them in the same way it uses the ones that you enter in the standard manner. Macros can also be stored and shared among multiple users.
The macro facility is provided with Base SAS software. The most current release is SAS 9.4.
Highlights
The SAS 9.4 Macro Language Facility has the following enhancements:
- A new appendix entitled "SAS Macro Examples" that contains several programs and descriptions.
- A new appendix entitled "SAS Macro Facility Error and Warning Messages" that lists all SAS macro error and warning messages, their causes, and their solutions.
- New automatic macro variables that enable you to reduce the amount of text that is needed to perform common tasks.
- New and enhanced options for macro statements that enable you to create secure macros and to integrate macros with other parts of your SAS programs.
For more information, read What’s New in the SAS 9.4 Macro Facility.
Free Online Documentation
Bookstore
- Macro Language titles in online bookstore
- Featured Titles
Technical Papers
Need help?
SAS Publishing Representatives are available in the U.S. from 8-5 ET to answer your documentation questions. Contact us at 1-800-727-0025, option 4 or e-mail.
Training
- SAS Macro Language 1: Essentials
- SAS Macro Language 2: Advanced Techniques
- SAS Macro 1 e-Lectures: Additional Topics
- The Power of CALL EXECUTE
Need help?
Curriculum consultants are available in the U.S. from 9-5 EST. Contact us at 1-800-727-0025, option 4 or e-mail.
International customers, please contact your country office.
Samples and Notes
For Samples and Notes, select the link below and then choose Autocall Facility, Macro Quoting, CALL SYMPUT, CALL EXECUTE, Utility Macros, or Macro Options from the product pull-down menu under Refine Search at the top.
Online Support Resources
Visit the Technical Support page to access various self-help and assisted-help resources or submit a problem through the SAS Technical Support form.
SAS UsersProviding technical tips and support information, written for and by SAS users. |
The SAS BookshelfProviding technical tips by SAS authors. |