[Info-vax] COBOL, <gack!> again! Return status.
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Tue Sep 12 08:44:14 EDT 2023
Den 2023-09-12 kl. 14:26, skrev bill:
> I read the VA COBOL Reference and the VSI OpenVMS COBOL
> Reference and it appears that VMS COBOL does not even
> support RETURNING/GIVING in call statements...
My copy of "VSI OpenVMS VSI COBOL Reference Guide" says
on page 275, in the description of the CALL statement:
22.
On Alpha and I64 systems, if the GIVING phrase of the CALL
statement is not specified, the function result is made available
in the RETURN-CODE special register when control returns to the
calling program.
23.
If the GIVING phrase is specified, the function result is made
available in function-res when control returns to the calling program.
[function-res]
Is the identifier of an elementary integer numeric data item with COMP,
COMP-1, or COMP-2 usage and no scaling positions. function-res can be
subscripted, and it can be qualified. When control returns to the calling
program, function-res can contain a function result.
I would not expected that to be any different on x86...
More information about the Info-vax
mailing list