[Info-vax] COBOL, <gack!> again! Return status.
Hein RMS van den Heuvel
heinvandenheuvel at gmail.com
Mon Sep 11 20:22:54 EDT 2023
On Monday, September 11, 2023 at 3:01:30 PM UTC-4, 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.
>
> — VAXman
Darn novices. Gotta teach them everything.
You should know better than to write 'balks' when asking for help.
What if a customer wrote that to you: "What are you doing EXACTLY, and what message do you get EXACTLY?"
Anyhoo... I largely answered that question in your earlier topic. See summary below.
Admittedly that topic got heavily side-tracked by the usual suspects (par for the course) to Fortran, dashes and underscores. No Emacs reference though, not yet, that's good.
On Friday, September 8, 2023 at 9:02:59 PM UTC-4, Hein RMS van den Heuvel wrote:
> On Friday, September 8, 2023 at 12:45:07 PM UTC-4, Brian Schenkenberger wrote:
>
> > I have the SYS$MGBLSC working... at least, in the debugger.:
:
> Or provide a second lower level function with just the 1 element also passed as linkage and called from the one you have?
> Remember these are functions 'giving', but they can only 'give' an R0 return value. Per Reference Guide: "The identifier must refer to an elementary integer numeric data
> item with COMP, COMP-1, or COMP-2 usage and no scaling positions."
>
> Greetings my friend!
More information about the Info-vax
mailing list