IBM Support

How to calculate number of lines in a source file using Logiscope ?

Question & Answer


Question

How to calculate number of lines in a source file using Logiscope ?

Answer

Logiscope Audit has various built in metrics; the metrics that are much closer to the line computation in Logiscope are:
lc_stat : Number of statements in a module/function
lc_line : Number of lines in a module/function.
lc_comm : Number of lines of comments
ap_line : Number of lines in a application

lc_line counts all the lines in a module: providing the logical line count. However, there is no method to obtain the physical line count. The closest option would be lc_line - lc_comm , though this will include empty lines.

6.1, 6.2, 6.3AnswerProduct versionPartner ContentInternal ContentCategoryReference IDAuthor

[{"Product":{"code":"SSYQHS","label":"Rational Logiscope"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

11162

Document Information

Modified date:
16 June 2018

UID

swg21324101