Skip to main content

[Migrated content. Thread originally posted on 29 May 2012]

We have a fairly complex COBOL routine to perform business logic that we want to call from JAVA. The COBOL routine uses 3 parameter blocks which are defined as COBOL group item records. Some of these parameter blocks have multiple definitions (the one to use depends on what function is being requested). We have successfully created MF COBOL "Custom Record Interface" objects for one definition of each of the 3 parameter blocks and we have successfully called and passed this info into and out of our COBOL routine from JAVA. Thus far, each "custom record" has only had to describe COBOL elementary group items. However, to complete the set of interfaces, we need to be able to handle COBOL record definitions that include an array (OCCURS). The "custom record" documentation and other "calling COBOL from JAVA" documentation does not give examples or suggestions on how to handle these more complex COBOL record structures. Does anyone have any examples or know of any more detailed documentation?