Legacy COBOL Translation Command-Line Options

The following table describes the command-line options for the legacy COBOL translation.

Legacy COBOL Option Description
-cobol-legacy

Specifies translation of COBOL code using legacy COBOL translation. This option is required to enable legacy COBOL translation.

Equivalent Property Name:
com.fortify.sca.CobolLegacy

-copydirs <dirs>

Specifies one or more semicolon- or colon-separated directories where Fortify Static Code Analyzer looks for copybook files.

Equivalent Property Name:
com.fortify.sca.CobolCopyDirs

-copy-extensions <ext>

Specifies one or more semicolon- or colon-separated copybook file extensions.

Equivalent Property Name:
com.fortify.sca.CobolCopyExtensions

-fixed-format

Specifies fixed-format COBOL to direct Fortify Static Code Analyzer to only look for source code between columns 8–72 in all lines of code. The default is free-format.

IBM Enterprise COBOL code is typically fixed-format. The following are indications that you might need the -fixed-format option:

  • The COBOL translation appears to hang indefinitely
  • Fortify Static Code Analyzer reports numerous parsing errors in the COBOL translation

Equivalent Property Name:
com.fortify.sca.CobolFixedFormat