Ent Cobol invoking Java - Howto intercept stdout/stderr?
Ent Cobol invoking Java - Howto intercept stdout/stderr?
I have an Enterprise Cobol program that has been able to successfully invoke java classes. What I'd like to be able to do is intercept the JVM stdout/stderr similar to how the JZOS launcher works so I can route the JVM messages to JES. Since Java is invoked from Cobol, I haven't been able to figure out a way intercept the JVM messages for writing to JES. Is there a way to invoke the JZOS launcher from Cobol so the javaout and javaerr could be written to JES?