If you want to call a COBOL module from a Java batch plain old Java object (POJO) in the batch environment, you must first create a COBOL call stub Java class.
The COBOL call stub generator tool compressed file can be found in the <was-home>/lib directory of your batch installation. Extract the file anywhere on your workstation.
$ cd COBOLCallStubGenerator
$ java –jar lib/COBOLCallStubGenerator.jar testcases/Sample01.cbl \
-configFile csg.properties
–callStubPackage com.ibm.ws.batch.ilc.sample \
-callStubClass Sample
The COBOL call stub generator tool can also be invoked from within Rational® Application Developer. Read the Generating COBOL call stubs topic for more information about the tool.
The generated code is written to the src directory of the Rational Application Developer workspace and project directory you specify on the WorkSpace and EclipseProjectName properties in the csg.properties file, which is found in the COBOL call stub generator install directory (/COBOLCallStubGenerator).
${WorkSpace}/${EclipseProjectName}/src/com/ibm/ws/batch/ilc/sample
and
any data binding classes for the linkage section variable used on
the PROCEDURE statement to the following directory: ${WorkSpace}/${EclipseProjectName}/src/com/ibm/ws/batch/ilc/sample/parameters