Methods | JCICS class | EXEC CICS Commands |
---|---|---|
converse() | TerminalPrincipalFacility | CONVERSE |
Not supported | HANDLE AID | |
receive() | TerminaPrincipalFacility | RECEIVE |
send() | TerminaPrincipalFacility | SEND |
Not supported | WAIT TERMINAL |
If a task has a terminal as a principal facility, CICS automatically creates two Java PrintWriters that can be used as standard output and standard error streams. They are mapped to the task's terminal. The two streams, called out and err, are public files in the Task object and can be used just like System.out and System.err.
Data to be sent to a terminal must be provided in a Java byte array. Data is read from the terminal into a DataHolder object. CICS provides the storage for the returned data and it will be deallocated when the program ends.