queue.cfg file

You can use the queue.cfg file to set the run priority for the Compile Queue Server and to set a permanent value for the maximum number of concurrent queue jobs. (If you use qcontrol to set the maximum number of concurrent jobs, the setting is only for the current session.)

The default for the number of compiling programs is two. It is suggested that you initially set the number of compiling programs to no more than two compile programs per processor. File contention is reduced by setting the number as low as possible. (One per processor generally gives you a good balance between compile performance and performance for other applications.) You can try setting the number of compiling programs at a higher number for a higher compile throughput, but if your system experiences performances issues then you should revise the number downwards.

Use the following steps to set the run priority and the maximum number of jobs for the Compile Queue Server.

To set the run priority and maximum number of concurrent compile jobs for the Compile Queue Server in queue.cfg

  1. Select the appropriate Environment.

    1. If you installed Infor Lawson Core Technology on an IASP, at the IBM i command prompt, specify this information:

      SETASPGRP IASPName

    2. At the IBM i command line, specify this information:

      CALL LAWENV

      The list of available Environments appears on your screen.

    3. Specify the appropriate Environment name and press Enter.

  2. With a text editor, open the $LAWDIR/system/queue.cfg file. If the file does not exist, create it in $LAWDIR/system. The file must be created as an ASCII file (ccsid 819). To create the file, open a Qshell session, change directory to $LAWDIR/system, and specify this information:

    touch -C 819 queue.cfg

  3. For the run priority, add the following line:

    RUNPTY nn

    where nn is the number representing the priority setting.

  4. For the maximum number of concurrent compile jobs, add the following line:

    local nn

    where nn is the maximum number of jobs for the Compile Queue Server.

  5. Save and close the file.

  6. Stop and start the compile queue. At the Qshell command line, specify this information:

    stopqueue

    startqueue