Troubleshooting
Problem
IBM Rational Asset Analyzer is not recognizing source code as COBOL when the file extension is .src.
Symptom
For source code in a file named Test.scr, Rational Asset Analyzer will denote Unknown for its language and src for its type.
Cause
There is no file extension for .src defined in the COBOL section of the Analyzers.cfg file.
Resolving The Problem
For mainframe assets, Rational Asset Analyzer does not require a file extension to perform source analysis. Rational Asset Analyzer looks at the source to determine its language and its type (such as program, copybook).
If there is a file extension, it must be defined in the file installDir\config\Analyzers.cfg and associated with a language. In this case, Rational Asset Analyzer uses the extension as additional input to classify the source file.
Below is an example COBOL section from Analyzers.cfg.
Update extensions to include src in order for Rational Asset Analyzer to recognize files with an extension of .src as COBOL source code.
[COBOL]
contentMIMEType = text/plain
description = $L{COBOL_description}
extensions = cbl,cob,cpy
languageCd = COB
Was this topic helpful?
Document Information
More support for:
Rational Asset Analyzer
Software version:
5.5
Operating system(s):
Windows
Document number:
392999
Modified date:
02 August 2018
UID
swg21394351