Calling COBOL from NetRexx with parameters

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Calling COBOL from NetRexx with parameters

Pierre Lessard
Hello!

Is anyone succeeded in calling some cobol programs (on VM/ESA 2.4) from
NetRexx with passing and receiving back some parameters? As I can read,
there is 3 possible solutions to pass parameters and call cobol program from
Java/NetRexx:

1. Doing a Runtime.exec( '  cms command here or Open/VM command ' ) then
reading from / in std input and std output
2. Using the CMSPipe class from NetRexx... but to load and start a cobol
program? and how the cobol program can actually write / read to the pipe?
any examples?
3. Using the CMSRexx to call a Rexx program which himself calls a cobol?

What about multi-threading? e.g. calling many cobol program at the same time
with the CMSPipe class?

Your help, advise is always appreciated!

Thank you!

Pete