> -----Original Message-----
When beginning to learn macro it is important to keep in mind two concepts (among others):
1. macro and data step code are run at different times.
2. macro processing is text substitution (over-simplified but essentially true).
It looks like you might be inappropriately mixing macro and data step code. At the very least your choice of macro parameter names may be confusing.
If you want to include the macro generated statements more than once in a program then just include the macro call more than once
... More statements
But as Ron Fehd has pointed out, macro may not be the tool that you want to use to solve your problem. Why are you using macro code at all here. What is the problem that macro is supposed to solve for you that you can't use plain old data step code for?
If you tell us more about what you are trying to accomplish, someone may be able to give you better advice.
Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204