For each Java-related CICS task, CICS automatically creates two Java PrintWriters that can be used as standard out and standard error streams. The standard out and standard error streams are public fields in the Task called out and err.
If a CICS task is being driven from a terminal (the terminal is called a principal facility in this case), CICS maps the standard out and standard error streams to the task's terminal.
If the task does not have a terminal as its principal facility, the standard out and standard error streams are sent to System.out and System.err. System.out and System.err are mapped to the CICS transient data queues CESO and CESE, respectively. Your CICS system programmer creates these queues, and others used for CICS messages, during CICS installation. You can access and print or display these message queues using utility programs such as the DFH$TDWT sample program described in the CICS® Customization Guide. DFH$TDWT is supplied with the CICS pregenerated system in CICSTS31.CICS.CICS.SDFHLOAD.