|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.ftt.jes.util.core.JesJobUtil
public class JesJobUtil
Utility class for submitting jobs to JES.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Constructor Summary | |
|---|---|
JesJobUtil(IOSImage systemImage)
Creates a JesJobUtil instance for the specified system. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COPY_RIGHT
| Constructor Detail |
|---|
public JesJobUtil(IOSImage systemImage)
systemImage - system associated with this utility instance| Method Detail |
|---|
public boolean isConnected()
IJESJobUtilIJESJobUtil
instance is connected.
isConnected in interface IJESJobUtiltrue if connected, false otherwisepublic boolean hasJobFinishedExecuting(String jobId)
IJESJobUtil
hasJobFinishedExecuting in interface IJESJobUtiljobId - the Job Id to check
true if the job has finished,
false if still running
public String submit(Object resource)
throws Exception
IJESJobUtilIJESJobUtil instance. The contents of the resource should be
JCL.
submit in interface IJESJobUtilresource - 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 fails
public InputStream getJobContents(String jobId)
throws OperationFailedException
IJESJobUtil
getJobContents in interface IJESJobUtiljobId - 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.
public InputStream getJobContents(String jobId,
String ddName)
throws OperationFailedException
IJESJobUtil
getJobContents in interface IJESJobUtiljobId - 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.
public List getJobDDNames(String jobId)
throws OperationFailedException
IJESJobUtil
getJobDDNames in interface IJESJobUtiljobId - 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.
public String getJobReturnCode(String jobId)
throws OperationFailedException
IJESJobUtil
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!
getJobReturnCode in interface IJESJobUtiljobId - 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 | |||||||||