Preparing COBOL source and copybook files for translation

Before you can analyze a COBOL program, you must copy the following program components to the Windows system where you run OpenText SAST:

  • COBOL source code

    OpenText strongly recommends that your COBOL source code files have extensions .CBL, .cbl, .COB, or .cob. If your source code files do not have extensions or have non-standard extensions, you must follow the instructions in Translating COBOL Source Files Without File Extensions and Translating COBOL Source Files with Arbitrary File Extensions.

  • All copybook files that the COBOL source code uses

    This includes All SQL INCLUDE files that the COBOL source code references (a SQL INCLUDE file is technically a copybook file)

    The copybook files must have the extension .CPY or .cpy.

    If your COBOL source code contains:

    COPY FOO

    or

    EXEC SQL INCLUDE FOO END-EXEC

    then FOO is the name of a COBOL copybook and the corresponding copybook file has the name FOO.CPY or FOO.cpy.

OpenText recommends that you place your COBOL source code files in a directory called sources and your copybook files in a directory called copybooks. Create these directories at the same level.