[Info-vax] COBOL, <gack!> again! Return status.
Stephen Hoffman
seaohveh at hoffmanlabs.invalid
Thu Sep 14 20:31:26 EDT 2023
On 2023-09-11 19:01:26 +0000, Brian Schenkenberger said:
> 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.
If it doesn't need to be portable COBOL, which seems likely given SYS$MGBLSC...
CALL "SYS$EXIT" USING BY VALUE RETURN-STATUS
And for errors...
CALL "LIB$SIGNAL" USING BY VALUE ERROR-STATUS
--
Pure Personal Opinion | HoffmanLabs LLC
More information about the Info-vax
mailing list