IBM Support

Configuring AIX print batch queues

Troubleshooting


Problem

Configuring AIX print batch queues

Symptom

PART: DCS 6.2 SP2 DCS

Information on how to configure print batch queues on AIX boxes.

Cause

Resolving The Problem

Valid queues for use with "at" command for the OS are as follows:
OS Queues
-----------------------------------
HP a, b, d - y
SUN a, b, d - z
IBM a, b, e, f

You could only specify parameters like # jobs, Nice value and Wait period for each queue. So, you should specify only a, b, e, f queues for configuring print jobs on IBM.

On IBM you could create new queues in /etc/qconfig file. However, you could submit batch jobs to these queues only with "enq" command and not "at" command. So, you could fool the system by keeping an "at" shell script in your PATH ahead of standard "at" command and translate these parameters to "enq" command. This has not been tested by engineering.

In order to use the additional queues created in the qconfig file, you will need to create an 'at' script that DCS will use when firing the prints to the print batch queues. The 'at' command will then change the command to enq so that the AIX box can understand the request.

The 'at' script should look something like the following. This file should be placed in the $DCS_BASE/obj directory.
#!/usr/bin/ksh

## Gets the quename from command
while getopts :q: option
do
case ${option} in

q) QueName="${OPTARG}" ;;

esac
done

### If temp dir is not set, use /tmp

if [ -z "${TMPDIR}" ]
then
TMPDIR=/tmp
fi

### Read all records from the input and direct them to new inputfile
while read Record
do
echo ${Record} >> ${TMPDIR}/$$.enq
done

### enqueue request with the new input file
if [ -z "${QueName}" ]
then
enq ${TMPDIR}/$$.enq
else
enq -P${QueName} ${TMPDIR}/$$.enq
fi

rm -f ${TMPDIR}/$$.enq

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI49087

Product Synonym

[<p><b>]Fact[</b><p>];

Document Information

Modified date:
16 June 2018

UID

swg21544250