Hi, If you really are new to SAS, be careful with how soon you start writing macros. The (main) purpose of the macro language is to generate SAS code. Usually it makes sense to spend time writing (and debugging) your own SAS code until you are comfortable with that, before adding in the complexity of automated code generation. There is plenty you can do with SAS without worrying about macros. Even non-macro ways to do code generation. That said, if you are sure you want to dive in to macros, sometimes a way to start is to write your SAS code first and get it working, and then convert it into a macro. --Q.
... View more