Package dev.galasa.zosbatch
Interface IZosBatch
public interface IZosBatch
Provides the test code access to zOS Batch jobs via the zOS Manager
-
Method Summary
Modifier and TypeMethodDescriptionReturn a list of zOS Batch jobs with the given jobname and/or the owner.@NotNull IZosBatchJob
submitJob
(@NotNull String jcl, IZosBatchJobname jobname) Submit a job.@NotNull IZosBatchJob
submitJob
(@NotNull String jcl, IZosBatchJobname jobname, ZosBatchJobcard jobCard) Submit a job.
-
Method Details
-
submitJob
@NotNull @NotNull IZosBatchJob submitJob(@NotNull @NotNull String jcl, IZosBatchJobname jobname) throws ZosBatchException Submit a job.- Parameters:
jcl
- - The JCL to submit. Must not include the JOB statementjobname
- -IZosBatchJobname
A provisioned jobname, if null, a new unique jobname will be provisioned.- Returns:
IZosBatchJob
A representation of the zOS Batch Job- Throws:
ZosBatchException
-
submitJob
@NotNull @NotNull IZosBatchJob submitJob(@NotNull @NotNull String jcl, IZosBatchJobname jobname, ZosBatchJobcard jobCard) throws ZosBatchException Submit a job.- Parameters:
jcl
- - The JCL to submit. Must not include the JOB statementjobname
- -IZosBatchJobname
A provisioned jobname, if null, a new unique jobname will be provisioned.- Returns:
IZosBatchJob
A representation of the zOS Batch Job- Throws:
ZosBatchException
-
getJobs
Return a list of zOS Batch jobs with the given jobname and/or the owner. Jobname and owner can be the full value or use the * wild card.- Parameters:
jobname
- - The jobname. If null, defaults to *owner
- - The User ID of the job owner. If null, defaults to the user ID of the requester. Use * for all owners.- Returns:
- a
List
ofIZosBatchJob
objects with the given jobname prefix - Throws:
ZosBatchException
-