|
|||
|
> From: Ravi M
> Can any one tell me... > In a SAS program how to find the number of lines of SAS code? > How to find the number of lines of comments? search terms: kloc == one thousand lines of code the problem is what is a 'line of code'? do you want to count just semicolons? and does it count if a line has both a statement and a comment ? we have (at least) three types of comments in SAS: * statement; /* comment */ %* macro comment; asterick statements are easy: they occur at statement boundaries slash asterisk comments can cut across anything: intra- as well as inter-statement comments and macro comments can appear within SAS statements: attrib I length = 4 %*integer; J length = 4 %*integer; X length = 8 %*real; ; My SUGI30 Coder's Corner paper discusses some famous guidelines from Brooks: The Mythical Man-Month about KLOC Journeyman's Tools: The Writing for Reading and Reuse Program Header http://www2.sas.com/proceedings/sugi30/067-30.pdf Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: OT: Lines of code per day... | Alan Churchill | Newsgroup comp.soft-sys.sas | 0 | 05-09-2006 03:39 PM |
| Re: OT: Lines of code per day... | toby dunn | Newsgroup comp.soft-sys.sas | 0 | 05-09-2006 03:25 PM |
| Re: How to find the number of lines of SAS code and comments | Doug Rohde | Newsgroup comp.soft-sys.sas | 0 | 05-06-2005 09:13 PM |
| How to find the number of lines of SAS code and comments | Ravi M | Newsgroup comp.soft-sys.sas | 1 | 05-02-2005 01:28 PM |
| Documenting sas programs | nevin | Newsgroup comp.soft-sys.sas | 2 | 02-05-2005 08:58 AM |