Got a complex macro? Don’t have time to work out what it is actually doing? Its much easier to work with resolved code! The macro below will help – just stick it at the start of your code, and write the resolved code somewhere else (which can then be ‘stepped through’ to understand whats going on).
Points to note:
- If your macro is data driven, the code above may change depending on the data!
- The delete function does not always work (eg if your SAS session still has the file open)
- The comment feature is very old! Credit to James Taylor for knowing about this.
- You may find for practical use, all you really need is this: