Documenting SAS Macros on a Server
Once a SAS macro is placed on a server for all users, the source code disappears and the comments which would help to determine how to use the macro also disappear. The author proposes writing two macros for each macro and calling a third macro. The first macro is the macro that a programmer would write no matter what. The second macro contains the documentation for the first macro. Finally, the third macro is a call to a macro which will deliver the source code to the programmer. This method of programming is already employed in open source projects as can be seen by calling the man pages for linux programs.