![]() |
![]() |
|
|
![]() |
![]() |
Native Mode Spooler Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 Spooler and Spool File Management Tasks![]() Managing the spooler |
|
The user who has access to the system console, typically the system operator and occasionally the system manager, can control virtually every aspect of spooling with the SPOOLER command. This includes starting, stopping, suspending, and resuming any spooler process, and releasing a suspended spool file so that another can be printed instead. The SPOOLER command may be entered only at the console unless it has been allowed to other users via the ALLOW or ASSOCIATE commands. To use the SPOOLER command, you must always specify device(s) whose spooler you want to direct, and at least one other parameter that tells MPE/iX what to do. The general form of the SPOOLER command is shown below. The remainder of this section explains the various tasks you can do with the SPOOLER command and provides examples for you. For a detailed explanation of the SPOOLER command and its parameters, see chapter 4.
The design of the native mode (NM) spooler prevents full backward compatibility with the compatibility mode (CM) spooler commands. For instance, SUSPENDSPOOL and SPOOLER ...;SUSPEND without the ;FINISH option causes the spooler process to retain ownership of the spool file that it is currently processing. Such differences will be noted as appropriate throughout this chapter, and they are further explained in Appendix B. To create and activate a new spooler process on a spoolable device, enter:
Or, because DEV= is optional, you could also enter:
To stop a spooler process, enter:
This command also closes the spooling queues for logical device 6. To stop the spooler process and to leave the spooling queues open for logical device 6, enter:
To suspend a spooler process, use the SPOOLER command with the SUSPEND parameter or use the SUSPENDSPOOL command. When you issue either of these commands, the spooler process retains ownership of the spool file that it is currently processing, but pauses the output. While the spooler is suspended, users may continue to create spool files, but no printing takes place. The printer(s) whose spooler process(es) have been suspended will remain idle until you command the spooler(s) to resume. When you issue the SPOOLER...;RESUME command (with no offset specified), the printer resumes printing exactly where it left off For example, to suspend spooling on all printers belonging to device class LP, you would enter:
There are many options to the SPOOLER;SUSPEND and the SUSPENDSPOOL commands that allow you to control the interruption of printing and determine the spooler's behavior when printing resumes. These options are explained next. To suspend spooling but allow a spool file that is currently being printed to finish printing, enter:
To immediately suspend spooling without allowing the currently printing spool file to finish, or to keep the file for reprinting at a later time, enter:
Because ;NOW is the default option, it may be omitted. You can suspend spooling but allow the spooled device to retain ownership of the file it is currently printing. This way, the spool file will resume printing (exactly where it left off or at another page that you specify) when the spooler resumes. To do so, you would enter:
The ;KEEP parameter is the default and can be used only when ;NOW is specified or taken as the default. As a result, you could achieve the same result by entering:
You can suspend spooling and direct the printer to release the currently printing spool file. If a spool file is released, a different spool file may begin printing when spooling is resumed. Or, the released spool file could be printed by another spooler process. To release a spool file, you use the NOKEEP parameter.;NOKEEP may only be used when ;NOW is specified or taken by default. For example:
When you are printing to CIPER protocol devices and HP 2680 and HP 2688 page printers, you can specify on what page to resume printing. For these devices, a page is one physical sheet. (Pages are not defined for other devices, and the results of using the ;OFFSET parameter are unpredictable for them.) To instruct the spooler where to begin printing, you use the ;OFFSET parameter. If you don't specify the ;OFFSET parameter, printing resumes at the page where it stopped. This is the default. ;OFFSET is valid only in the following cases:
For example, to suspend spooling and to position backward three pages from the page that is being printed, enter:
To suspend spooling and to position forward five pages in the current spool file, enter:
To suspend spooling and to position seven pages from the beginning of the spool file, you would enter the command below. In this case, the absence of a + or - sign indicates an absolute offset from the beginning of the spool file.
To be sure that a spool file begins printing at its beginning, enter:
When using network printers, avoid using the following commands to suspend the spooler in mid-file:
Many interfaces drop a network connection if the printer is ready to receive data but no data is being sent within a specific time period. The period is configurable at the printer or in the printer's TFTP file (specified in the bootptab entry), but many users simply use the factory default, which is 90 seconds. The timer only runs when the printer is available but the host is not sending data, as is the case during a mid-file suspension. The timer does not run when the printer is unable to print, i.e., it has been taken offline, or places itself offline due to a paper out or toner low condition. Use the NMS command SPOOLER with the parameter RESUME or the command RESUMESPOOL to resume processing a spool file. Both SPOOLER...;RESUME and RESUMESPOOL begin printing where the printer left off, provided that the following conditions are met:
Now suppose that logical device 6 is owned by a spooler process. Enter:
Suppose that the spooler had just transmitted line 20 of page 10 and suppose that the conditions above hold. To continue spooling at line 21 of page 10 as if the suspension never took place, enter:
If you do not suspend this way, the spooler prints a trailer and prints a header when it resumes. If the spooler releases a file, any specified offset is honored by the next spooler which prints the file. If you do not specify an offset, the next spooler starts at the beginning of the page at which the previous output was suspended.
If the ;SUSPEND parameter is used with the ;KEEP option or the ;KEEP option is taken by default (that is, neither ;KEEP nor ;NOKEEP is specified), the spooler process retains the spool file which was printing when the command was entered. This means that the currently printing spool file is the first spool file to print when spooling is resumed. You may use the ;RELEASE parameter to release a retained spool file. A released spool file is closed and the spool file prints based on its output priority relative to other spool files. The released spool file may also be printed by another spooler process. To release a retained spool file, enter:
You may use the ;OFFSET option to specify the spool file location where printing begins when the spool file finally begins to print. To release a spool file and to specify that it is to begin printing 10 pages back from the current page position, enter:
To release a spool file but ensure that it resumes printing at its beginning, enter:
You may also position the spool file forward from the current page position or forward from the beginning of the spool file. For information on how to do this, see the previous section on suspending spool files. The ;OFFSET parameter works in exactly the same way with each of the ;SUSPEND and ;RELEASE parameters. When you use the ;RESUME parameter, ;OFFSET works in the same way except for the case of a spooler that did not retain its file. ;OFFSET is not valid with ;START or ;STOP. The SPOOLER command ;SHOW parameter displays the status of the spooling process. To issue this command, enter:
If a device class is specified, status is displayed for all spoolable devices in the class. You may use ;SHOW with any combination of other SPOOLER command parameters. For example:
;SHOW produces a listing similar to:
The asterisk (*) indicates that the device is in a pending state on the way to the requested state. For example, suppose that you issue a SPOOLER command to suspend spooling. It is possible for the ;SHOW option of the command to finish processing before the spooler is fully suspended. In this case, an asterisk precedes the state of the spooler, shown under SPSTATE, to indicate that it is being changed. The OPENQ command opens the spooling queue for each device and makes it possible for users to create spool files. It does not enable you to print spool files. The OPENQ command may be entered only from the system console unless allowed to other users with the ALLOW or ASSOCIATE commands. Before spool files can print you must start the spooler. The general form of the OPENQ command is:
For example, to open the spooling queue for all devices in class LP, enter:
To see information about the state of the queues and device(s) for which you are opening spooling queues, enter:
To open all spool queues that were shut because the system ran out of disk space, a file limit was encountered on the HPSPOOL account or its groups, or the SHUTQ @ command was entered, enter:
The SHUTQ command prohibits anyone from creating new spool files but has no effect on spool files which have already been opened. It does not prevent spool files from printing. To do that, you must stop or suspend the spooler. The SHUTQ command may be entered only from the system console unless allowed to other users with the ALLOW or ASSOCIATE commands. The general form of the SHUTQ command is:
For example, to close the spooling queue(s) for all devices in class LP, enter:
To see information about the state of the queues and device(s) for which you are closing spooling queues, enter:
To shut all open spool queues on your system, enter:
The OUTFENCE command does not affect the spooler process directly but you may use it to control access to a spooled printer. The OUTFENCE command enables you to assign a fence or numerical barrier to one or more printers. An output spool file does not print unless its output priority exceeds the outfence. The OUTFENCE command may be entered only from the system console unless allowed to other users with the ALLOW or ASSOCIATE commands. The general form of this command is:
The outpri parameter can be any value from 1 to 14. An outfence of 14 prevents any spool file from printing. The ;DEV parameter may be a logical device number, device class, or device name and is optional. The ;LDEV parameter refers only to a printer's logical device number. It also is optional. If ;LDEV and ;DEV are omitted, the command applies to all spoolable printers. For example, to prevent anything from printing on all devices which are members of the device class LP, enter:
To set the outfence to 8 for LDEV 6, enter:
You may use the HEADON and HEADOFF commands to print or supress printing of a paper header and trailer page between each report. Paper headers may make it easier to physically separate and distribute printed material To produce a printed header and trailer on a specific logical device, enter:
To eliminate the header and trailer, enter:
Either command takes effect when the next spool file is started. By default, spool files are deleted after the last copy is printed. The ;SPSAVE parameter causes a print file to be saved in the OUT group of the HPSPOOL account after the last copy of it has been printed. This is useful because it enables you to print spool files repeatedly (using the SPOOLF command) without having to rerun the producing application each time. If you do this, it may be desirable to copy the saved spool file to your own group and account to save space in the OUT group of the HPSPOOL account that is a shared system resource. You may then use the ;PRINT option of the SPOOLF command to print the file whenever you wish. To use this parameter simply add ;SPSAVE onto any file equation for printed output. For example:
You may not use ;SPSAVE and ;PRIVATE together. To save a job's $STDLIST output spool file in the OUT.HPSPOOL group after it has printed, add the ;SPSAVE parameter to the JOB command as follows:
The ;PRINT option of the SPOOLF command copies a linked or an unlinked output spool file to a linked output spool file that has an entry in the spool file directory. Once the file is linked to the spool file directory, it will be printed according to its output priority. For example, to use the SPOOLF command to print the file MYSPOOL, you would enter:
The ;FORMID parameter, in conjunction with the ;FORMS parameter, may be used to specify a unique special form for printed output. The ;FORMID parameter saves the operator from interacting with the console when multiple spool files are printed with the same special forms. Unless you modify them with the FORMSALIGN command, the following rules apply to the ;FORMID and ;FORMS= parameters:
The form name specified with the ;FORMID parameter is used for printing and for management of spool files. You can group spool files having the same form name by using the ;FORMID keyword of the ;SELEQ parameter with the LISTSPF and SPOOLF commands, which are described later in this chapter. The FORMS=formsmessage must end with a period or you get an error message. The FORMID must be no longer than eight characters and must begin with a letter. An example of FORMS= (notice the period) and FORMID follows:
In this case, the FORMID is TAX1040. The LISTSPF command with the ;DETAIL parameter displays TAX1040 along with the spool file. Suppose that you are not the console user nor do you have SM, OP, or AM capability. To display the output spool files in your user.account that have the attribute TAX1040 and to display the name TAX1040 with the spool files, enter:
Other issues to be aware of include these:
|
![]() |
||
![]() |
![]() |
![]() |
|||||||||
|