Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2005, 02:24 PM
Fehd, Ronald J
Guest
 
Posts: n/a
Default Re: How to find the number of lines of SAS code and comments

> 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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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



All times are GMT. The time now is 01:03 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.