+

Search Tips   |   Advanced Search

COBOL RETURNING, RETURN-CODE, getReturnValue, and getReturnCode parameters

If the COBOL module specifies a RETURNING parameter, it can be retrieved from the stub using the stub.getReturnValue() method. The method returns the Java object representation of the RETURNING parameter, which is the data bindings class generated by the COBOL call stub generator tool.

See the following information about the COBOL module and its parameters:

methods return summary. This table summarizes what is returned by the stub.getReturnValue() and stub.getReturnCode() methods
COBOL specifies: stub.getReturnValue() stub.getReturnCode()
RETURNING The RETURNING parm 0
RETURN-CODE (not generated) RETURN-CODE
Both RETURNING and RETURN-CODE The RETURNING parm 0
Neither (not generated) 0


Related concepts

  • COBOL container overview


    Related tasks

  • Develop COBOL container batch applications
  • Create a COBOL call stub Java class
  • Compiling COBOL call stub Java classes

  • COBOL call stub Java class usage example
  • COBOL container for batch troubleshooting