Job Queues
A Job Queue is an entity to which jobs are submitted. Each Job Queue is attached to a Subsystem. If the Subsystem is active and has space for another job then the next available job on the Job Queue will be started in the Subsystem and therefore removed from the queue. There are 3 initial Job Queues that are preconfigured when the Enterprise Server is first installed. These are as follows:
- QBATCH - used for queuing general jobs. Jobs that are not required to be run immediately are usually submitted to this queue.
- QIMMED - used for high priority jobs that must be run the instant they enter the Enterprise Server. This Job Queue sends jobs to Subsystem SIMMED that has a maximum jobs of *NOMAX meaning that it will always accept a job submitted to it without waiting.
- QSYSTEM - Used for running tasks that are part of the Enterprise Server. These tasks include the Subsystem Manager, Scheduler and Notification Manager. Typically the SSYSTEM Subsystem that this queue feeds will allow more jobs than it will ever run at once meaning that jobs will start the minute they enter this queue.
New Job Queues may be created to meet your specific needs. You may wish to create a Job Queue that is only released in the evening. Users may then submit jobs such as reports to it during the day but the jobs will only be run after hours when the system is less busy or after the day's business data can be tallied.
Column definitions
Job Queue Headers
- Job Queue- the name of the Job Queue.
- Status - the current status of the Job Queue. This is either Active or Held.
- Subsystem - the Subsystem that jobs from this queue are sent to.
Job Headers
- Job Name - the name of this job.
- Job Number - the unique number assigned by the Enterprise Server to track this job.
- Status - the current status of this job. This is either Queued or Held.
- Owner - the user that submitted this job.
- Priority - the current execution priority of this job.
- Type - the type of job. This is either Auto Start, On Demand, One Time, Recurring or Triggered, as defined in Event Maintenance.
- Queued - the date and time that the job was queued.
- System - the JDP system from which this job was started.
Controlling Job Queues
Creating a new Job Queue
To create a new Job Queue click once on any of the existing Job Queues. A popup menu will be displayed. Choose Create New... The cursor will then be placed in an empty space of the display. Enter the desired name for the new Job Queue and press Enter. The new Job Queue will be created with the default settings.
Setting the Subsystem
To set the Subsystem that this Job Queue sends its jobs to click on the Job Queue. A popup menu will be displayed. Choose Set Subsystem and choose the desired Subsystem from the right popup menu. The Job Queue will now send its jobs to the newly selected Subsystem.
Removing a Job Queue
To remove a Job Queue click on the Subsystem. A popup menu will be displayed. Choose Delete from the popup and press OK when the confirmation dialog box appears. QIMMED, QBATCH and QSYSTEM may not be removed.
Holding and releasing a Job Queue
If you wish to hold a Job Queue so no jobs are released from it, click on the Job Queue. A popup menu will be displayed. Choose Hold. The Job Queue will then be held. Even if jobs on the queue have a status of Queued they will not be released if the queue is held. To release the Job Queue click on it again and choose Release from the popup menu. The Job Queue will again become active.
Adjusting the screen refresh interval
To adjust how often the Job Queue list is refreshed click on a Job Queue and choose Refresh Every from the popup menu. Then select the desired interval. The Job Queues screen will then automatically refresh at the new interval. The screen will only refresh if it is visible. If another tab in the menu system is selected refreshing will not occur until the Server Manager is reselected and the Job Queues tab is selected. The screen will also automatically refresh each time the Job Queues tab is selected. Note that refreshing the screen continuously can cause an unnecessary load on the server. The default refresh rate is 60 seconds.
Controlling Jobs in a Queue
Holding and releasing a job
To hold a job that is currently queued click once on it. A popup menu will be displayed. Choose Hold from the menu. The job is now held. To release the job click on it and choose Release from the popup menu. It is now re-queued.
Removing a job
To remove a job that is currently queued or held click once on it. A popup menu will be displayed. Choose Remove from the menu. The job will be removed. No job log will be created. Note that there is no confirmation dialog when removing jobs.
Changing the Job Queue
To change the queue that a job is on click once on the job. A popup menu will be displayed. Choose Change Job Queue to and choose the desired Job Queue. The job is now moved to the newly selected Job Queue.
Adjusting the job queuing priority
To adjust the job queuing priority click once on the job. A popup menu will be displayed. Choose Set Priority and choose the desired priority. 10 is the highest priority, 1 is the lowest. That is, jobs queued at priority 10 will start before those queued at a lower priority.