Hello, I am relatively new SAS convert tasked with taking ownership of some legacy production code. I recently wrote some SAS code to ingest the results of SCAPROC and produce some nice diagrams. I started with the ds2const macro, but the user interface was rather difficult, so I wrote a replacement that feeds the graphviz suite. While I am documenting the code, I need to be as minimally-invasive as possible. Everything worked fine, except it appears that a file called in via %include will be documented as a unit, instead of the individual datasteps. Let me explain. It turns out the production code I am looking at has wrapper code which calls %include for the real code. We added PROC SCAPROC to the real code and the resulting file had 1049 "/* JOBSPLIT:" lines consisting of various CATALOG, SYMBOL, LIBNAME, FILE and DATASET entries, followed by the final lines: /* JOBSPLIT: ELAPSED 20307685 */ /* JOBSPLIT: PROCNAME DATASTEP */ /* JOBSPLIT: STEP SOURCE FOLLOWS */ /* JOBSPLIT: END */ After some testing, it appears that SCAPROC will refuse to log any SAS file that has been included via %include. I could always make changes to the production code and the way it is invoked, but I am trying to avoid that while I document it. Is there an easy was to tell SAS to analyze the individual steps within included files? Many thanks, Marty
... View more