Technical data
Setting Up and Maintaining Queues
14.6 Using Queue Options
Examples
In the following example, the reset sequence contained in the module resets the
printer at the end of each job. It also resets the printer when the queue is started
to ensure that the first job prints correctly.
$ INITIALIZE/QUEUE/LIBRARY=MYDEVCTL/SEPARATE=RESET=MODULE2 PDQ_QUE
The following example uses device control library modules to process a print
job. Two device control modules are created and inserted into the library file
MYDEVCTL.TLB. The escape sequence or text in the setup module named
MODULE1 is sent to the printer to set up the printer before REPORT.TXT is
printed and again before MEMO.TXT is printed. The escape sequence or text in
the reset module named MODULE2 is sent to the printer only once after both
files in job REPORT have printed.
$ LIBRARY/CREATE/TEXT SYS$LIBRARY:MYDEVCTL.TLB
$ EDIT MODULE1.TXT
!enter printer escape sequences or text for module1
$ EDIT MODULE2.TXT
!enter printer escape sequences or text for module2
$ LIBRARY/INSERT SYS$LIBRARY:MYDEVCTL.TLB/TEXT MODULE1
$ LIBRARY/INSERT SYS$LIBRARY:MYDEVCTL.TLB/TEXT MODULE2
$ INITIALIZE/QUEUE/START/ON=TTA9:/LIBRARY=MYDEVCTL PDQ_QUE
$ SET QUEUE/SEPARATE=RESET=MODULE2 PDQ_QUE
$ SHOW QUEUE/FULL PDQ_QUE
Terminal queue PDQ_QUE, idle on TOAD::TTA9, mounted form DEFAULT
/BASE_PRIORITY=4/DEFAULT=(FEED,FORM=DEFAULT)/LIBRARY=MYDEVCTL
/OWNER=[1,4]/PROTECTION=(S:M,O:D,G:R,W:R)/SEPARATE=(RESET=(MODULE2))
$ DEFINE/FORM/SETUP=MODULE1/STOCK=DEFAULT FORM1 1
$ PRINT/FORM=FORM1 REPORT.TXT,MEMO.TXT/QUEUE=PDQ_QUE
Job REPORT (Queue PDQ_QUE, entry 619) started on PDQ_QUE
14.7 Maintaining Queues
Once you set up your queues, you must monitor and modify them according to the
needs of your site.
Also, setting up queues is not restricted to startup time. During normal
operation, you can create and start queues as your needs dictate. If you decide to
set up queues at a later time, refer to the instructions in Section 14.4.
If you create additional output queues at a later time, make sure to perform the
following actions:
• Add commands to set device characteristics to the startup command procedure
on the node on which the device is located.
• For devices attached to a LAT port, add commands to the startup procedures
on all nodes with queues for the device.
• For additional nonautostart queues, add appropriate START/QUEUE
commands to the startup command procedure on the node on which the
queue will run. If you do not add appropriate START/QUEUE commands, the
queues will not be started when the system reboots.
14–54 Setting Up and Maintaining Queues










