Note:
When possible, use a resource class instead of
a class from the access package. Resource classes provide a generic framework
and a consistent programming interface for working with various AS400 objects
and lists. 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.