Handling MVS START and MODIFY commands

A callback interface is provided for a Java™ application that needs to receive and process MVS MODIFY (F) commands. If you started the application as an MVS started task, the parameters on the START command are sent to the handleStart() callback method as soon as it is registered.

Here is an example of handling MVS START, STOP, and MODIFY commands:
final String startCmd = null;

MvsConsole.registerMvsCommandCallback(new MvsCommandCallback() { 
    public void handleModify(String s) {
        System.out.println("Received Modify command: " + s); } 
    public void handleStart(String s) {
        startCmd = s; }
    public boolean handleStop() {
        return true; // so that System.exit(0) is done
    }
});
System.out.println(“Start command options = “ + s);