Job class

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

Note: IBM® Toolbox for Java also provides resource classes that present a generic framework and consistent programming interface for working with various objects and lists on your iSeries™ server. 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.

Example

For a code example, see the Javadoc reference documentation for the Job class. The example shows 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:

Job