[Info-vax] Returning data from Cobol AST routine.
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Mon Sep 20 18:55:02 EDT 2021
Hi.
I have been looking at the Cobol AST example here:
http://computer-programming-forum.com/48-cobol/b75d8c5fdd43048e.htm
This does work fine as an example. But what are the options to get
some data back to the main program (called "x" in the example)
from the ast program (called "ast_routine" in the example)?
I have tried different versions of global, external and so on, but
no luck so far. How to get "x" and "ast_routine" to share some data?
Anything similar to an COMMON area in Fortran?
The idea is to have an AST routine that will read from a mailbox when
something is written to it. My idea was that the read of the mailbox
would be using an AST to avoid polling the mailbox.
This is to have a command input to detached processes to get them to
reload the config, repoen the log file, close and exit and so on.
Are there more options if not everything is done in Cobol?
We can easily add some C if that helps...
Regards,
Jan-Erik.
More information about the Info-vax
mailing list