Question ID : 271
Created on 2016-05-02 at 9:35 AM
Author : Veryant Support [firstname.lastname@example.org]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=271
The compilation of a program with isCOBOL consists in two steps. In the first step the isCOBOL Compiler (iscc) parses the COBOL source code and produces an intermediate Java source. In the second step the Java Compiler (javac) compiles the Java source into a class file.
In order to know the version of the isCOBOL Compiler used to produce the class file, you can process the file with the following command:
iscrun -info PROGRAM.class
The command might print one of the following outputs:
COBOL: java OBJECTs
It means that the program was compiled with a newer version of isCOBOL and your old version is not able to process the class, or
COBOL: compiled with isCOBOL build #??? ....
The ??? number tells you the build number. You can retrieve the isCOBOL version according to the following table:
In order to know the version of the Java Compiler used to produce the class file, you can process the class with the following command:
javap -verbose PROGRAM
(Note that in this case it's important to omit the ".class" extension)
At the beginning of the output you will find
major version: ###
where the ### is the magic number.
You can retrieve the Java version according to the following table:
Back to Original Question