
46 Java Stand-alone Applications on z/OS Volume II
3.4.3 JZOS console communication example
In this section, we present how to write a Java program which performs the
console communication using JZOS APIs. The program reads a message to print
from the standard input stream when it is started. Once it reads the initial
message, it prints a message to the system log that the program is ready to
accept commands. The program loops and prints the periodic message
indefinitely. During the execution, it accepts the MVS modify command to change
the message to print. Example 3-6 shows the complete program.
Example 3-6 Illustration of MVS console communication ...