Job

The job class (in the access package) allows a java program to retrieve and change server job information.

Note: Toolbox for Java also provides resource classes that present a generic framework and consistent programming interface for working with various iSeries objects and lists. After reading about the classes in the access package and the resource package, you can choose the object that works best for your application. The resource classes for working with jobs are RJob, RJobList, and RJobLog.

The following type of job information can be retrieved and changed with the Job class:

The job class also allows the ability to change a single value at a time, or cache several changes using the setCacheChanges(true) method and committing the changes using the commitChanges() method. If caching is not turned on, you do not need to do a commit.

Use this example for how to set and get values to and from the cache in order to set the run priority with the setRunPriority() method and set the date format with the setDateFormat() method.