- java.lang.Object
-
- com.ibm.jzos.sample.MvsConsoleInteraction
-
public class MvsConsoleInteraction extends java.lang.Object
This sample shows how JZOS can be used to interact with the MVS console.The main program enters a loop waiting for dataset names to be sent via the MVS modify command.
- If a modify command with APPL=DSN is received, its record count is written to the console via a WTO and the datasetCount is incremented.
- If a modify command with APPL=EXIT is received, the loop is abandond, the number of datasets processed is written to the MVS console and the program completes normally.
- If a stop command is received, the number of datasets processed is written to the MVS console and the program is exited via System.exit()
-
-
Constructor Summary
Constructors Constructor Description MvsConsoleInteraction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
This program issues a WTO requesting that a dataset name be sent via an operator modify command.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
This program issues a WTO requesting that a dataset name be sent via an operator modify command. The resulting string is used to open a ZFile that reads the dataset and counts the number of records.The program loops until the string "EXIT" is sent via the modify command or a STOP command is received. The STOP command is handled entirely by the mvsCallback.
- Throws:
java.lang.Exception
-
-