|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IJESJobUtil
Job submission interface. Implementations of this interface can be used to submit jobs and query their status.
Note: Currently, the only jobs supported by the methods with take a jobId as input, are those which can be resolved by one of the JES job filters defined under the JES subsystem in the Remote Systems view.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Method Summary | |
|---|---|
InputStream |
getJobContents(String jobId)
Return the contents of the spool datasets for the specified job. |
InputStream |
getJobContents(String jobId,
String ddName)
Return the contents of the job output spool dataset associated with a specified DDName, e.g JESMSGLG, JESJCL or JESYSMSG. |
List |
getJobDDNames(String jobId)
Return a list containing the DDNames of the output spool datasets for a specific JES job. |
String |
getJobReturnCode(String jobId)
Get the return code for the job identified by jobId. |
boolean |
hasJobFinishedExecuting(String jobId)
Determines whether the job with the specified Job ID has finished execution. |
boolean |
isConnected()
Determines whether the system associated with this IJESJobUtil
instance is connected. |
String |
submit(Object resource)
Submits the specified resource to the system associated with this IJESJobUtil instance. |
| Field Detail |
|---|
static final String COPY_RIGHT
| Method Detail |
|---|
String submit(Object resource)
throws Exception
IJESJobUtil instance. The contents of the resource should be
JCL.
resource - the resource object to be submitted; the resource can be a
data set member or a workstation file
null if the Job Id returned by the server is not
valid
Exception - if job submit failsboolean isConnected()
IJESJobUtil
instance is connected.
true if connected, false otherwiseboolean hasJobFinishedExecuting(String jobId)
jobId - the Job Id to check
true if the job has finished,
false if still running
InputStream getJobContents(String jobId)
throws OperationFailedException
jobId - the Job Id whose contents are to be returned
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing.
InputStream getJobContents(String jobId,
String ddName)
throws OperationFailedException
jobId - the Job Id which identifies the JES job whose contents are to
be returnedddName - the DDName associated with the job output dataset.
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing.
List getJobDDNames(String jobId)
throws OperationFailedException
jobId - the Job Id which identifies the JES job whose output spool
dataset DDNames are to be returned
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing.
String getJobReturnCode(String jobId)
throws OperationFailedException
U0000 = all OK
U0004 = minor errors or problems
U0008 = significant errors or problems
U0012 = major errors or problems, the results (e.g. files
or reports produced) should not be trusted.
U0016 = very serious problems, do not use the results!
jobId - the Job Id whose return code is to be returned
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||