Purpose

This page is a troubleshooting guide for the problem where the comments are not counted in RPG.

Observed in CAST AIP


Release
Yes/No
8.3.x (tick) 
Observed on RDBMS
RDBMS
Yes/No
CSS(tick)
Step by Step scenario
  1. Installed RPG UA.
  2. Launched analysis.
  3. Open enlighten and drag the object on the view.
  4. Hit F12 and check the LOC and comments.
Action Plan

To troubleshoot this issue, you need the following Relevant input

Perform the below actions:

  1. Check if the comments begin from column 7 and has asterisk in correct place. If the comments are not beginning from column 7 then it is expected behavior, to not have the comments counted. Your comments or code should begin from column 7 and for comments there must be an asterisk on column 7.
    1. Launch Enlighten
    2. Drag the object to the view
    3. Hit F11
    4. See in the below screenshot which indicates the place where you can see the column and the line number.
    5. If the comments and the code both are starting from correct column then Check if there are any junk NUL characters in the file.
  2. Check if there are any junk NUL characters in the file. If there are any junk NUL characters in the file as shown in the screenshot below then the comments will not be counted.

    1. Remove these junk characters for the analyzer to detect comments. 
    2. Even after removing the junk if your comments are not counted then contact CAST Technical Support with the Relevant input
  3. If you are not able to find the reason or solution for your problem contact CAST Technical Support with the Relevant input . For support - refer the page - Enlighten - RPG - Comments count is displayed as 0 in object properties - CAST Confidential

Relevant input

  1. CAST Support Tool (CST) - alias Sherlock export
  2. Screenshot of enlighten showing the properties and highlighting the part of source file which you think are comments but are not counted.
  3. Screenshot of enlighten showing the column number and line number.
  4. Sample source file on which you have this problem.
Notes/comments

Ticket # 4816

Related Pages