Tips for the Advanced Job Scheduler
This document contains tips that can be used for the Advanced Job Scheduler.
Resolving the problem
The following tips can be used for the Advanced Job Scheduler.
|o||When saving the QUSRIJS and QIJS product libraries, it is not a problem if any data queues (object type *DTAQ) do not get saved. Data queues used by the product are automatically created if they do not exist.|
|o||In addition to the Advanced Job Scheduler (AJS) logs (DSPLOGJS), the system job logs for the actual AJS jobs can also be useful in problem determination. Job QIJSSCD for the local AJS monitor and job QIJSSRV for the remote AJS monitor in subsystem QSYSWRK often contain useful information when troubleshooting problems.|
|o||To specify active dependencies for all jobs in a group, specify *ALL as the job name when adding the active dependency for the group.|
|o||To add a job dependency so that a job will run after the last job in a group, specify *LAST as the job name when adding the group as a predecessor job to the successor job. Using *LAST ensures that no matter what jobs run for the group, the successor job will start when the group is done.|
|o||Within Advanced Job Scheduler for Wireless, you can change one of the Preferences to Don't Show Activity to increase response time. This causes the server to bypass the Schedule Activity counts.|
|o||To embed a spooled file in the body of an email, specify *NONE as the Attachment Name.|
|o||The System Controls contain the values that determine how many days or how many occurrences of history to keep, along with the how many days of log entries to retain.|
|o||During a disaster recovery it may be necessary to reset all jobs. This can be done for the entire product from the System Controls menu with Option 8 Reset jobs.|
|o||The *NEWJOB functional authority is used to define the authority that will be assigned to all new jobs. Select Option 5 Edit function authority when working with Job Defaults to change the *NEWJOB authorities associated with a specific job default.|
|o||The Graphical User Interface must be used to set up Report Distribution so that it will automatically split up a spooled file and send each portion to a different email address.|
|o||Use the Graphical User Interface to view sent emails.|
|o||The Submit Job using Job Scheduler (SBMJOBJS) command and Option 7 (Submit immediately) is used to run jobs individually as one-time runs. To continue any job dependencies at that point, specify *YES for the Update dependencies (UPDDEP) parameter. *NO is the default.|
|o||To set up commands that should run at the start of every job in a certain Job Default/Application, go to the JSJOBCTL menu (GO JSJOBCTL), and specify Option 1 (Work with job defaults). On the Work with Job Defaults panel, select Option 8 (Change PRE command list) on the correct Job Default/Application to enter the commands to run. Then, select Option 2 to change the job defaults and specify *PRE for the Use job default commands field at the bottom of the first screen to indicate that only the PRE command job default commands should be used.|
|o||Adding a schedule to a holiday calendar causes the jobs that use the holiday calendar to skip running on the days based on that schedule. Use the Graphical User Interface to create a schedule and to add it to a holiday calendar.|
|o||When setting up a job group, it is a good idea to create the sequence 1 job without any commands and space the sequence numbers out for the other jobs. This allows for inserting jobs at a later time. In addition, create a job with sequence 99 that does not have commands. No matter how many jobs are added to the group, this will be the last job. It can be used with dependencies.|
|o||Use of the Advanced Job Scheduler (AJS) parameter passing facility can really expand the power of the Advanced Job Scheduler. The Change Data with Job Scheduler (CHGDTAJS) command allows you to change the value of AJS parameters. Using this command to update the value of parameters allows parameter values to be passed to your program dynamically. When using the Submit job using Job Scheduler (SBMJOBJS) command, temporary values can be specified for parameters used in the job.|
|o||The job monitor for the IBM Advanced Job Scheduler for iSeries defaults to run under the QIJS User Profile. The job monitor user profile will be used for any scheduled job that has *CURRENT specified as its user profile. The QIJS User Profile is provided with the product. To change the default User Profile to one that has sufficient authority for running the unattended batch jobs, do the following:
1. Type the following on the command line: GO JS
2. Select Option 5, System controls, and press the Enter key.
3. Select Option 3, Change system controls, and press Enter.
4. Specify the user profile in the Job monitor user field.
|Operating System||IBM i 7.1|
|Operating System||IBM i 6.1|
More support for:
Job and system Management
Software version: 5.4.0, 5.4.5, 6.1, 6.1.0, 6.1.1, 7.1, 7.1.0
Operating system(s): IBM i
Reference #: N1015171
Modified date: 2012-09-28