07-08-2014 02:20 PM
I liberally use headers & comments in my SAS code, however when my programs reach lengths of thousands of lines I find myself losing track of the location of procedures and macros.
Is there a way to create a "table of contents" at the top of my SAS code that lists line numbers or, better yet, contains active hyperlinks within my program?
07-08-2014 02:43 PM
Sadly I don't think so, that would be a great Idea though...
Create an Idea
07-08-2014 02:47 PM
The other general solution is to create multiple programs and %include them instead of having one giant program.
07-08-2014 02:57 PM
Thanks, that's a good idea - although I may end up with a lot of separate programs tied together by my main table of contents program. I'd have to stay on top of file organization.
07-08-2014 03:15 PM
Although it is not exactly what you want, when coding in the enhanced efitor (e.g. in EG) you can collapse all data and proc steps and macros to just one line. See the effect with keyboard combination
ctrl+alt +numblock - (minus key)
Reinstate with ctrl+alt (num+)