Writing messages to the system console or log
The toolkit contains a method for issuing single or multi-line write-to-operator (WTO) messages to the system console or log. The message String object is automatically broken on word boundaries as required to fit on multiple lines, and converted to the operating system encoding.
Here is an example of issuing an MVS WTO message:
MvsConsole.wto("FOO1233E processing complete. Since this is a rather"
+ "long message, it will broken into a multi-line WTO on
+ "a word boundary as required." ,
0x0020, // routecde
0x4000); // descriptor code