Using a DD statement to route JVM server output to JES
You can update the JVM server to redirect output to a specific location.
JVM server STDOUT, STDERR, and JVMTRACE output can be routed to the JES log. This allows JVM server log file output to be managed together with other CICS® logs such as the MSGUSR.
STDOUT=JOBLOG
STDERR=JOBLOG
JVMTRACE=JOBLOG
//JVMOUT DD SYSOUT=*
//JVMERR DD SYSOUT=*
STDOUT=//DD:JVMOUT
STDERR=//DD:JVMERR
To establish the origin of the JVM server output, all stdout, and stderr entries that are routed to JES are written with a prefix string of the JVM server name, which is useful if multiple JVM servers are sharing a destination. This behavior can be disabled by using the JVM profile option IDENTITY_PREFIX, which if set to FALSE disables use of the prefix string.
If you choose not to specify a destination, the output will redirect to the zFS default file, however you can set it to send to specific zFS files. See Controlling the location for JVM stdout, stderr, JVMTRACE, and dump output.