Problem:
There are times that you would like to know addition static with a COBOL source program. Some of these area of interest are:
1) number of calls
2) number of lines within a COBOL source
3) number of comment lines
Resolution:
Specifying the directive LINE-COUNT will not only number the lines of code within a COBOL program (excluding comment lines), but it will provide a count of various other statics such as:
Lines of Source
Comment lines
Comment percentage
Sections
Files
Condition
Report
Call (by number)
Call (data-item)
Maximum Nesting
Lines of Code
Text comments
Statements
Paragraphs
Data-items
Screen Name
Level 78
Call (by name)
Linkage 01's
Overlap. prfms
The syntax for line count is:
>>-.---.-.-------LINE-COUNT--"integer"-.----><
-/- .----.-LINE-COUNT------------
-NO-
Parameters:
integer Controls the output displayed:
1 The number of source lines checked, excluding blank lines and comments, is displayed at the end of the source listing.
2 As well as number of source lines checked, many additional details are displayed at the end of the source listing. These include the various items above.
