Ent Cobol invoking Java - Howto intercept stdout/stderr?

General discussion on the JZOS batch launcher and toolkit
Post Reply
tfull
Posts: 15
Joined: Mon Oct 10, 2005 4:27 pm

Ent Cobol invoking Java - Howto intercept stdout/stderr?

Post by tfull »

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?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The JZOS launcher is a normal MVS load module, so you could probably load it and call it from Cobol, but I don't see how this would enable you to then invoke Java classes from Cobol.
Post Reply