Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Passing return-code information

Use the RETURN-CODE special register to pass return codes between programs. (Methods do not return information in the RETURN-CODE special register, but they can check the register after a call to a program.)

You can also use the RETURNING phrase in the PROCEDURE DIVISION header of a method to return information to an invoking program or method. If you use PROCEDURE DIVISION . . . RETURNING with CALL . . . RETURNING, the RETURN-CODE register will not be set.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)