com.ibm.jzos.sample
Class MvsSubmitJob
- java.lang.Object
-
- com.ibm.jzos.sample.MvsSubmitJob
-
public class MvsSubmitJob extends java.lang.Object
Sample program which submits a job to the internal reader. Getting status for an executing job requires an APF authorized program interface to the subsystem API. The TSO "STATUS" command can be executed via the REXX "TSO" command processor to obtain this information. See the sample "jobStatus" REXX script.- Since:
- 2.4.0
-
-
Field Summary
Fields Modifier and Type Field and Description static long
ONE_MINUTE
static long
ONE_SECOND
static long
TWO_SECONDS
-
Constructor Summary
Constructors Constructor and Description MvsSubmitJob()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
main(java.lang.String[] args)
A sample main method that submits JCL read from a file and then polls its status (for up to a minute) until it is complete.
-
-
-
Field Detail
-
ONE_SECOND
public static final long ONE_SECOND
- See Also:
- Constant Field Values
-
TWO_SECONDS
public static final long TWO_SECONDS
- See Also:
- Constant Field Values
-
ONE_MINUTE
public static final long ONE_MINUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
A sample main method that submits JCL read from a file and then polls its status (for up to a minute) until it is complete. The first argument to main can be a Unix file/path name or a "//DATASET.NAME".- Throws:
java.io.IOException
-
-