Task.out and Task.err

For each Java-related CICS task, CICS automatically creates two Java PrintWriters classes that can be used as standard out and standard error streams. The standard out and standard error streams are public fields in the Task class 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.