![]() |
||
![]() |
||
|
|
||
|
||||||||||||||||||||
|
Downloads "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." | ||||||||||||||||||||
|
Codedoc
Perhaps you've seen how the javadoc tool turns structured header comments inside Java source into HTML API documentation, and wished for something similar for SAS. If so, the codedoc may be the tool for you. Codedoc is able to read a directory of SAS code source files and extract documentation from header comments that follow simple formatting conventions. The best way to see how this works is by example. Here's a very short SAS macro with a codedoc header comment. Codedoc is not limited to macro programming, but this is a good place to start:
Codedoc builds an XML document containing the information in your codedoc header comments. If the above file is the only source file that codedoc reads, the XML will be:
This XML can also be associated with an XSL stylesheet, so that it can be viewed in a friendly way in a web browser: ![]() Codedoc is available now for free download (registration required) under the Eclipse Public License. The distribution includes the codedoc.pl perl script and a sample XSL style sheet for formatting extracted documentation as HTML. |
||||||||||||||||||||