Submitting a Job
To submit a job from a partitioned data set member using an IPartitionedDataSetMember:
IJESCommandProvider commandProvider = ...
IPartitionedDataSetMember member = ...
try {
// submit the job (the returned JobInfo may be used to
// retrieve/monitor the job's status)
JobInfo jobInfo = commandProvider.submit(member);
} catch (DataSetAccessException e) {
// the user does not have access to the partitioned dataset
...
} catch (DataSetInUseException e) {
// the partitioned dataset is enqueued by another user or job
...
} catch (DataSetMigratedException e) {
// the partitioned dataset has been migrated since it was first
// retrieved
...
} catch (DataSetNotFoundException e) {
// the partitioned dataset can no longer be found
...
} catch (MemberNotFoundException e) {
// the partitioned dataset member can no longer be found
...
}
To submit a job from a partitioned data set member using a partitioned data set name and member name:
IJESCommandProvider commandProvider = ...
String pdsName = ...
String memberName = ...
try {
// submit the job (the returned JobInfo may be used to
// retrieve/monitor the job's status)
JobInfo jobInfo = commandProvider.submit(pdsName, memberName);
} catch (DataSetAccessException e) {
// the user does not have access to the dataset
...
} catch (DataSetInUseException e) {
// the dataset is enqueued by another user or job
...
} catch (DataSetMigratedException e) {
// the dataset is migrated
...
} catch (DataSetNotFoundException e) {
// the dataset could not be found or is not a partitioned dataset
...
} catch (MemberNotFoundException e) {
// the member could not be found
...
}
To submit a job from a sequential data set using an ISequentialDataSet:
IJESCommandProvider commandProvider = ...
ISequentialDataSet sequentialDataSet = ...
try {
// submit the job (the returned JobInfo may be used to
// retrieve/monitor the job's status)
JobInfo jobInfo = commandProvider.submit(sequentialDataSet);
} catch (DataSetAccessException e) {
// the user does not have access to the sequential dataset
...
} catch (DataSetInUseException e) {
// the sequential dataset is enqueued by another user or job
...
} catch (DataSetMigratedException e) {
// the sequential dataset has been migrated since it was first
// retrieved
...
} catch (DataSetNotFoundException e) {
// the sequential dataset can no longer be found
...
}
To submit a job from a sequential data set using a sequential data set name:
IJESCommandProvider commandProvider = ...
String sequentialDataSetName = ...
try {
// submit the job (the returned JobInfo may be used to
// retrieve/monitor the job's status)
JobInfo jobInfo = commandProvider.submit(sequentialDataSetName);
} catch (DataSetAccessException e) {
// the user does not have access to the dataset
...
} catch (DataSetInUseException e) {
// the dataset is enqueued by another user or job
...
} catch (DataSetMigratedException e) {
// the dataset is migrated
...
} catch (DataSetNotFoundException e) {
// the dataset could not be found or is not a sequential dataset
...
}
To submit a job from a list of String records:
IJESCommandProvider commandProvider = ...
List<String> jclRecords = ...
// submit the job (the returned JobInfo may be used to
// retrieve/monitor the job's status)
JobInfo jobInfo = commandProvider.submit(jclRecords);
Related topics
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.