|
||||||||||
| 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 to the Job Entry Subsystem, and query their status.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Method Summary | |
|---|---|
InputStream |
getJobContents(String jobId)
Return the contents of the spool data sets associated with the specified job. |
InputStream |
getJobContents(String jobId,
String stepnameDdname)
Return the contents of the spool data set associated with the specified stepname/ddname and job. |
List<String> |
getJobDDNames(String jobId)
Return a list containing the stepnames/ddnames identifying the spool data sets associated with 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 job id cannot be found or if the
job has not finished executing
InputStream getJobContents(String jobId,
String stepnameDdname)
throws OperationFailedException
The job is identified by the job id which is returned by submit().
The stepname/ddname is of the form STEPNAME.DDNAME, or simply
DDNAME if no stepname applies. This is the same form as
returned by getJobDDNames(String).
jobId - the job id which identifies the JES job whose contents are to
be returnedstepnameDdname - the stepname/ddname
OperationFailedException - if the job associated with jobId cannot be found or if the
job has not finished executing
List<String> getJobDDNames(String jobId)
throws OperationFailedException
The job is identified by the job id which is returned by submit().
The stepnames/ddnames are of the form STEPNAME.DDNAME, or simply DDNAME if no stepname applies.
jobId - the job id which identifies the JES job whose spool
data set 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 | |||||||||