HP Micro Focus Object COBOL/UX Release Notes for Version B.12.35
22 Chapter 2
Installation Information
Installing HP Micro Focus Object COBOL/UX
Identifying Compiler Version Used with
cobwhat
Some releases of the product require users to re-compile their sources
because some new versions of the run-time system will not execute an
.int file that was compiled on a previous version of COBOL. The
run-time system can abort while executing an .int file that has not been
recompiled.
cobwhat enables you to identify the version of the compiler or NCG used
to create a COBOL executable form (.int, .idy, .gnt, .snt, a.out, .o,
.a, .lbr or .sl).
Syntax: cobwhat filenames
If the extension of the filename is not recognized, cobwhat checks if the
file is an executable. For COBOL executables, cobwhat will report the
NCG version string. For non-COBOL executables, no NCG version string
will be reported. For .int or .idy files, cobwhat will report the Micro
Focus version number for the compiler.
For incorrectly named .int files (for example, .snt renamed as .int),
cobwhat gives the following output:
-------------------------------------
filename.int is not a COBOL .int file.
-------------------------------------
B.12.35 cobwhat
Examples
Listed below are some cobwhat examples and sample outputs for this
version of HP Micro Focus Object COBOL/UX:
Example: $ cobwhat pi.int
Output: --------------------------------------------------
File : pi.int
Micro Focus COBOL for UNIX V4.1 revision 020
--------------------------------------------------
Example: $ cobwhat pi.gnt pi.o pi.idy