Defining a Job Queue

You can use the Job Queue Definition utility (jqdef) to define up to 100 job queues for running batch jobs. These queues are in addition to the default queue available initially after you install Lawson. Having additional queues is useful to assign different priorities to different queues and to balance the load on the system.

Before you define a job queue in the Job Queue Definition utility, you must first define the job queue on the IBM i system.

To define a job queue

  1. Access the Job Queue Definition utility.
    1. In a Lawson Interface Desktop (LID) session, use Form Transfer (F8).
    2. In the Form ID field on the Form Transfer form, type jqdef and click the OK button or press Enter.

    The Job Queue Definition form appears.

    Form clip: Job Queue Definition form
  2. On the Job Queue Definition form, type or select the following information.
    Queue Name

    The name of the queue you want to define.

    This job queue must already exist on IBM i.

    Max Nbr Of Jobs

    The maximum number of both update jobs (jobs that update the database files) and non-update jobs that Lawson can run at the same time on the job queue.

    You must type a number in this field.

    Lawson delivers a default of a 10-job maximum, but you can increase this number in the lajs.cfg file.

    Max Nbr Of Update Jobs

    The maximum number of update jobs (jobs that update the database files) that Lawson can run at the same time on the job queue.

    The number typed in this field must be less than or equal to the number of jobs typed in the Max Nbr Of Jobs field.

    Note: If a batch update program for a product line is set to execute nonconcurrently, the Job Scheduler utility does not simultaneously run two different jobs or job steps that use that product line's batch update program, regardless of the value in the Max Nbr Of Update Jobs field.
    Queue Priority

    Assigns CPU scheduling priority to the job queue by designating the priority active batch jobs receive. For Unix, the valid values are 20 to 39. For Linux, the valid values are 0 to 19. The smaller the number, the higher the priority and the more frequently the job receives CPU time.

    Note: On Unix, If you do not specify a number, Lawson assigns a default priority of 30. On Linux, If you do not specify a number, Lawson assigns a default priority of 10.

    Because all online programs run at a priority of 20, running a batch program on a job queue with a priority of 20 causes the batch program to compete with online programs, thus slowing online response time.

    To change the queue priority for a job queue that is assigned to a job on the Waiting Jobs form, you must first put the waiting job on Hold, and then change the queue priority on the Job Queue Definition form.

    Note: Queue priority refers only to priority within the Job Scheduler (that is, the order in which the Job Scheduler utility tries to execute submitted jobs), not system execution priority.
    Status

    The status of the job queue. The default is Active.

    Active indicates a job queue that can run jobs.

    Inactive stores jobs in the assigned job queue until the job queue is activated or until the jobs are deleted.

  3. When you have finished making your selections, press Enter twice to save the job queue definition. Any changes you make to a job queue's parameters take effect immediately.