Moving a job up in priority within a job queue
All jobs in a job queue wait in line for processing. As each job in the queue completes, the next job in line begins. The processing order of the jobs in the queue depends upon the job's priority, and the maximum number of jobs that can run at the same time on the subsystem.
Sometimes the importance of a job changes as it goes through its life cycle. It can increase or decrease in priority in relation to other jobs.
Because these changes occur, you need to know how to change the priority of a job within the job queue.
The priority of a job on a job queue helps determine when the job goes to the subsystem to run. A range from zero to nine (zero being the most important) determines the priority of a job on a job queue.
Parent topic:
Common job tasks
iSeries Navigator
You can use iSeries Navigator to change a job's priority in the job queue.
- Expand My Connections > server > Work Management > Job Queues > Active Job Queues or All Job Queues > The job queue in which your job is located.
- Right-click the job and click Properties.
- On the Job - Properties window, click the Job Queue tab.
- From the Priority on job queue list, select a higher (or lower) priority number. The job queue priority ranges from 0-9,
with 0 being the highest priority.
- Click OK. The job queue priority has been changed for your job. For example, changing a priority 4 job to a priority 3 moves the job to the bottom of the list of jobs that have a priority 3.
- Press F5 to refresh the Job Queue window.
Character-based interface
Command: Change Job (CHGJOB)
Parameter: JOBPTY
Example: This command changes the scheduling priority for the job PAYROLL to 4. Because only the simple name of the job is specified,
there can be only one job named PAYROLL in the system. If there is more than one, the default of DUPJOBOPT(*SELECT) causes a selection panel to be displayed in an interactive job.
CHGJOB JOB(PAYROLL) JOBPTY(4)