Fixing Output Destination for COBOL Subprograms
The JZOS Batch Launcher uses the STDOUT DD name for the Java System.out stream. COBOL uses SYSOUT as the default DD name for the DISPLAY output.
When a Jopaz compiled main program calls a COBOL-compiled subprogram, the output from the Jopaz main program and the output from the COBOL subprogram go to different output devices.
You can recompile the COBOL subprogram with the OUTDD(STDOUT) option, and the DISPLAY output is written to the same destination as the Java System.out stream.