[Info-vax] COBOL, <gack!> again! Return status.
bill
bill.gunshannon at gmail.com
Mon Sep 11 15:45:56 EDT 2023
On 9/11/2023 3:01 PM, Brian Schenkenberger wrote:
> How does a COBOL program return a status (ie. R0) to a calling program?
> I found a reference to RETURN-CODE but compiler balks at that.
>
In Unix ending the program with:
STOP RUN RETURNING {literal-1}
{identifier-1}
will make a return code available to the shell.
If you want a status returned to DCL I expect that would do it.
bill
{I really need to get a VMS system running here again.}
More information about the Info-vax
mailing list