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:

Table 1. stub.getReturnValue() and stub.getReturnCode() methods return summary. This table summarizes what is returned by the stub.getReturnValue() and stub.getReturnCode() methods based on what is specified in the COBOL code.
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

指出主題類型的圖示 參照主題



時間戳記圖示 前次更新: July 9, 2016 11:12
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rgrid_usage_returning
檔名:rgrid_usage_returning.html