SAS Institute. The Power to Know

Learning Center

More Information

Book Extras

Keep in Touch

SAS Press» Companion Site

Carpenter's Complete Guide to the SAS Macro Language, Second Edition

About the Book

book cover Carpenter's Complete Guide to the SAS Macro Language, Second Edition
By: Art Carpenter
ISBN: 978-1-59047-384-9
Pages: 504


Order this book from our online bookstore


Art Carpenter thoroughly updates his successful first edition with an extensive collection of new examples and techniques. Addressing the composition and operation of the SAS macro facility and the SAS macro language, this second edition is filled with ready-to-use macros, macro functions, and macro tools that will enable you to effortlessly convert SAS code to macros, define macro variables, and more! New topics include
  • writing user interfaces with %WINDOW
  • using SYSPARM and SYSPBUFF
  • using CALL EXECUTE
  • deleting macro variables using %SYMDEL
  • using macro recursion
  • creating your own macro functions.

Also included are new SAS®9 features such as

  • statements that include %ABORT and %RETURN
  • system options for the macro language
  • macro functions
  • autocall library macros
  • code recovery options for compiled stored macro libraries.

Many topics from the first edition have been expanded.

Whether you're a new user with a basic understanding of Base SAS or an experienced programmer looking for an advanced reference manual, this is the macro book that you've been searching for!

About the Author

author photo Art Carpenter’s complete publications list includes Carpenter’s Complete Guide to the SAS Macro Language, Quick Results with SAS/GRAPH Software, Annotate: Simply the Basics, two chapters in Reporting from the Field: Software Experts Present Real-World Report-Writing Applications, over four dozen papers and posters presented at the SAS User’s Group International (SUGI) conference and other SAS users group meetings in the U.S. and Europe, and a number of papers not related to SAS. Art has served as a steering committee chairperson of both the Southern California SAS User’s Group (SoCalSUG) and the San Diego SAS Users Group (SANDS), a conference co-chair of the Western Users of SAS Software (WUSS) regional conference, and a conference chair and executive committee member of SUGI.

Art has been actively using SAS software since 1976 and each year teaches numerous SAS and statistics courses to companies and institutions nationwide. This book is used as the primary text for both his introductory and advanced courses on the SAS macro language.