SAS Macros are used in a variety of ways: to automate the generation of SAS code, to simulate functions and subroutines, or even to “comment” out a section of code. This paper focuses on another use of SAS macros: utilities.
These macros don’t generate any SAS code and they aren’t “functions,” but they all take tasks I found myself doing repeatedly and bundled them in an easy to reference package.
These are examples range in scope from displaying SAS date values to retrieving information about external files, from getting the values of current options to getting a list of variables in a dataset. They are meant to be just that – examples. I hope that they will give you some ideas about how to automate some of the tasks you find yourself doing repeatedly
Make Your Life a Little Easier: The Evolution of a SAS Macro
Paper:
conference: