HP 3000 Manuals

Opening and Closing the Spool Queue [ Performing System Operation Tasks ] MPE/iX 5.0 Documentation


Performing System Operation Tasks

Opening and Closing the Spool Queue 

In addition to being the parameters for the SPOOLER command, OPENQ and
SHUTQ are themselves commands.  You may use the OPENQ command to open the
spooling queue and the SHUTQ command to close the spooling queue, or use
the OPENQ and SHUTQ options with the SPOOLER command.

To display information about the state of the queues and devices 

Use the ;SHOW option of the OPENQ command to see information about the
state of the queues and devices.  The ;SHOW option cannot be used if the
@ option is used with OPENQ and SHUTQ.

Enter:

     OPENQ LP;SHOW 

The OPENQ command opens the spooling queue for each device and makes it
possible for users to create spoolfiles.  It does not enable you to print
spoolfiles.  The OPENQ command may be entered only from the system
console unless enabled to other users with the ALLOW or ASSOCIATE
commands.  Before spoolfiles can print, you must start the spooler, by
opening the spooling queues.

To open spooling queues 

Open spooling queues which were open at the time of the last SHUTQ,
enter:

     OPENQ @ 

The above command does not open all spooling queues on the system.  You
can think of OPENQ @ as a global enabling of all device queues which are
already open.

To open spooling queues for all devices in class LP.   

Open spooling queues for all devices class in LP by entering:

     OPENQ LP 

To close spooling queue while starting the spooler process 

Use the SHUTQ option of the SPOOLER command to close the spooling queue
and start the spooler process.  For example:

     SPOOLER LP;START;SHUTQ 

The SHUTQ command prohibits anyone from creating new spoolfiles but has
no effect on spoolfiles that have already been opened.  It does not
prevent spoolfiles from printing.  To do that, you must stop or suspend
the spooler.

The SHUTQ and SPOOLER commands may be entered only from the system
console unless enabled to other users with the ALLOW or ASSOCIATE
commands.

To close spooling queues for all devices in class LP.   

Close spooling queues for all devices in class LP by entering:

     SHUTQ LP 

To clear a backlog of spooled reports 

If the device is not owned by a spooler process so that spoolfiles can be
printed, enter:

     SPOOLER DEV=nn;START;SHUTQ;SHOW Return 

Replace nn with your printer's LDEV number.

When the spooler is started, the computer sends you this message:
________________________________________________________________________
|                                                                      |
|                                                                      |
| 16:45/54/SP#nn/OUTPUT SPOOLER, LDEV #nn: STARTED                     |
|                                                                      |
________________________________________________________________________

            

nn is your printer's LDEV number.

If you would like to check the status of each printer after you have
brought it back up and started a spooler process for it, use the SPOOLER
command.  Enter:

     SPOOLER 6;SHOW Return 

You see the following on your screen:
________________________________________________________________________
|                                                                      |
|                                                                      |
| LDEV  DEV       SPSTATE   QSTATE  OWNERSHIP    SPOOLID               |
|                                                                      |
|    6  00000006  START     OPENED  OUT SPOOLER                        |
|                                                                      |
________________________________________________________________________

            

Lower the outfence to 1 so that any report assigned an output priority of
2 or higher can be printed.  Enter:

     OUTFENCE 1 Return 

Check the list periodically to find out how many spoolfiles remain by
entering:

     LISTSPF @ Return 

If some of the reports have been assigned the lowest priority, decide
whether or not you want to print them.  When the computer tells you that
there are "NO QUALIFIED SPOOLFILE(S)," they have all been printed.

To copy an output spoolfile from OUT.HPSPOOL to your account 

If you want to save an output spoolfile in your account, you may do so by
copying the file from the group OUT.HPSPOOL into your account, using the
COPY or FCOPY command.  Enter:

     COPY FROM=Onnnn.OUT.HPSPOOL;TO=outspfile 

Onnnn is the output spoolfile name (LISTSPF displays it), and outspfile 
is the name you give the local copy of the spoolfile.

Directories cannot be copied using the COPY command.  If the sourcefile 
or targetfile is actually a directory, an error is returned.

To store all output spoolfiles to tape 

You may use the STORE and RESTORE commands to copy spoolfiles to and from
tape.  It is recommended that you use these commands to move spoolfiles
from one system to another so long as both systems have the native mode
spooler.

Enter:

     FILE T;DEV=TAPE 
     STORE @.OUT.HPSPOOL;*T;SHOW 

The ;SHOW parameter produces a listing of files stored.  You may enter
;SHOW=OFFLINE for an offline listing.

To restore all output spoolfiles to your system 

Enter:

     FILE T;DEV=TAPE 
     RESTORE *T;@.OUT.HPSPOOL;SHOW 

Input spoolfiles are private and private spoolfiles cannot be stored.
However, because input spoolfiles are used and managed by the system,
there is seldom any reason to store them to tape or move them to another
system.


NOTE Spool files created for printing either on the HP 5000 or on an HP 2680 page printer have been modified for the current release of the operating system. If you have created a spool file on a system that has Release 5.0 of MPE/iX, and you restore it to a system with Release 4.5 or earlier, you cannot print the file correctly on the HP 5000 unless you have the FXR1 patch installed. For information, contact the Response Center.


MPE/iX 5.0 Documentation