SAS Macro Programming Made Easy

cover

Author: Michele M. Burlew

Publisher: SAS Publishing

This book is a clear, well-organized introduction to the use of the SAS macro language to generate SAS programs. It includes a detailed description of macro processing with numerous diagrams that provide a visual demonstration of the logic of macro substitution. Later chapters cover such advanced topics as macro quoting and autocall libraries.

Editions

3 (2014)

2 Paperback (2006)

1 Paperback (1998)

3 Paperback/E-book

Year: 2014

ISBN (paperback):

ISBN (Epub):

ISBN (Kindle):

Pages (paperback):

Publisher’s list price:

2 Paperback

Year: 2006

ISBN: 978-1-59047-882-0

Pages: 424

Publisher’s list price: 69.95

Contents

  • 1. Introduction
  • 2. Mechanics of Macro Processing
  • 3. Macro Variables
  • 4. Macro Programs
  • 5. Understanding Macro Symbol Tables and the Processing of Macro Programs
  • 6. Macro Language Functions
  • 7. Macro Expressions and Macro Programming Statements
  • 8. Masking Special Characters and Mnemonic Operators
  • 9. Interfaces to the Macro Facility
  • 10. Storing and Reusing Macro Programs
  • 11. Building a Library of Utilities
  • 12. Debugging Macro Programming and Adding Error Checking to Macro Programs
  • 13. A Stepwise Method for Writing Macro Programs
  • Appendix A. Abridged Macro Language Reference
  • Appendix B. Reserved Words in the Macro Facility
  • Appendix C. Sample Data Set
  • Appendix D. Reference to Programs in This Book
  • Index

1 Paperback

cover

Year: 1998

ISBN: 1-58025-343-1

Pages: 263

Publisher’s list price: 37.95

Contents

  • 1. Introduction
  • 2. Mechanics of Macro Processing
  • 3. Macro Variables
  • 4. Macro Programs
  • 5. More on Mechanics of Macro Processing
  • 6. Macro Programming Language Elements and Techniques
  • 7. Interfaces to the Macro Facility
  • 8. Storing and Reusing Macro Programs
  • 9. A Stepwise Method for Writing Macro Programs
  • Appendix A. Abridged Macro Language Reference
  • Appendix B. Reserved Words in the Macro Facility
  • Appendix C. Sample Data Set
  • Glossary
  • Index

From the back cover

This task-oriented book will guide you step-by-step through the fundamentals of the SAS macro facility. Included are a generous number of illustrations, examples, and tips.

With this book, you will handily learn the following:

  • advantages of macro programming
  • elements of the macro facility (macro variables, macro programs, macro language)
  • how to write a macro program
  • macro programming techniques
  • tips on using the macro facility
  • how the macro facility fits into the SAS System
  • interfaces between the macro facility and other components of the SAS System

Beginning macro programmers will learn to write SAS macro programs quickly and efficiently.

More experienced macro programmers will find this book useful to refresh their conceptual knowledge and expand on their macro programming skills. The book assumes some SAS programming experience, including knowledge of how to write a DATA step and how to use SAS procedures.

Author’s comments

“Since macro programming has become such an integral part of my SAS programming, I felt that I could describe this topic to others. I want my macro programming book to help other SAS programmers catch on to the great features of the SAS macro facility — hopefully, faster than I did.” [Michele Burlew interviewed in Authorline, fourth quarter 1998]