|
|
Native Mode Spooler Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 2 Spooler and Spool File Management TasksManaging Spool Files |
|
The SPOOLF command lets you change the characteristics of spool files such as the device, the output priority, the number of copies to print, and whether or not the spool file should be saved or deferred. You may also use it to print or delete spool files. You may use the ;ALTER parameter of the SPOOLF command to alter the characteristics of spool files. The ;ALTER parameter may not be used concurrently with the ;PRINT or ;DELETE parameters described below. If none of ;ALTER, ;PRINT, or ;DELETE are specified, ;ALTER is taken as the default. The general form of the SPOOLF command with the ;ALTER parameter is as follows:
When you are use the ALTER parameter of the SPOOLF command,cyou have four choices for how to specify the spool files you want to change:
When you use selection equations, the files that qualify depend upon your capabilities and whether or not you issue the command from the console. The selection is made from all output spool files if you are the console user or if you have SM or OP capability. If you are an AM user, the selection is made from all output spool files in your logon account. If you are not the console, user nor have SM, OP, or AM capability, the selection is made from the output spool files in your user.account. Selection equations are described in detail in previous sections of this chapter. Please refer there for more information. To alter the print device (to device class LP2) for three spool files, enter:
Or, omitting the IDNAME=, enter:
You may specify a device class, as in the example, or you may specify a logical device number or device name. To alter the output priority of all linked output spool files of which you are the owner (or, if you are logged onto the console, or have OP or SM capability, all output spool files on the system), enter:
This command alters the priority of all output spool files in your logon account if you have AM capabilty. To alter the number of copies for one or more output spool files, enter:
To save one or more output spool files, enter:
or
The second example uses ;ALTER as the default. When an output spool file is saved, a copy of it remains in the OUT group of the HPSPOOL account after it is printed. To defer one or more spool files, enter:
A deferred spool file does not print until it is undeferred. When a spool file is deferred in this way, its priority is not changed. Instead, it is simply marked as deferred. (Its state is DEFER.) To undefer one or more spool files, enter:
An undeferred output spool file does print if its output priority exceeds the outfence of the printer to which it has been sent. You may use the ;PRINT option of the SPOOLF command to print output spool files. The ;PRINT option makes a linked copy of the specified spool file. Like the ;ALTER option described above, you may also use it to save; defer and undefer a spool file; and to specify the print device, the priority, and the number of copies. The general form of the ;PRINT option of the SPOOLF command is as follows:
All parameters for the ;PRINT option are used exactly as described above for the ;ALTER option (and produce the same results) except for the IDNAME. One or more filesets are required for the IDNAME. A file set has the general form:
Wildcards are supported. Even so, all spool files in the file set must be output spool files. If a spool file is not an output spool file, the print option fails, and the command continues on the rest of the spool files. Files that are not spool files are ignored since SPOOLF applies only to spool files. If the spool file name is not fully qualified (the group and account names are not given), the default is the user's current logon group and account. If any spool file has a lockword, it must be supplied with the command in batch mode; therefore, the spool file cannot be part of a set defined with wildcards. This restriction does not apply in interactive mode because the system prompts the user for each required lockword. If you do not supply the correct lockword, the print option on that spool file fails with a warning message, and the command continues to operate on remaining spool files. Remember, each file you specify must be a valid spool file. Suppose that you create spool file O98 with the SPSAVE option. The file prints once, then remains in OUT.HPSPOOL instead of being deleted from the account because you instructed the spooler to save it after printing. To print another copy of the file, you would use the SPOOLF command, like this:
The resulting linked spool file has the default priority of 8 and one copy is printed. Suppose that you have copied a spool file from the OUT group of the HPSPOOL account into the PUB group of the MFGRPTS account and named it MFGDATA. To print this spool file, while you are logged onto that group and account, you would enter:
To print MFGDATA from a different logon group and account, add the spool file's group and account name as follows:
You must have access to MFGDATA.PUB.MFGRPTS in order to print it. Suppose that the spool file MFGDATA contains a lockword. You could enter it as follows:
Whenever the SPOOLF command is executed in batch mode the lockword must be supplied with the spool file name as in this example. In session mode the system prompts you for lockwords. The ;PRINT option of the SPOOLF command offers all of the options described above for the ;ALTER option except for the selection equation (;SELEQ=). So you may specify the device, the output priority, and the number of copies to print as well as whether to save, defer, or undefer the spool file. A sample command follows:
These parameters are described above in the discussion of the ;ALTER parameter. You may use wildcards in the file set. For example, if you have SM or OP capability, print copies of all spool files in the OUT group of the HPSPOOL account by entering:
If you do not have SM or OP capability and you enter this command, you get an error when the system encounters the first file in the file set to which you do not have access. The ;DELETE option of the SPOOLF command allows you to delete linked spool files. The IDNAME and ;SELEQ parameters of the ;DELETE option of the SPOOLF command operate in precisely the same way as they do for the ;ALTER parameter previously described in this section. The general form of the SPOOLF command with the ;DELETE option is:
You may use the wildcard symbol in IDNAME to specify all output spool files. For example:
Similarly, you could use SPOOLF O@;DELETE to delete all spool files to which you have access. For example, if you have SM or OP capability, it deletes all output spool files on the system. Because this form of the command is so powerful, be very judicious when using it.
To delete one or more spool files, enter:
If you are using SPOOLF to delete input data spool files, you must use the format Innn for the spool file identification. Also, $STDIN input spool files cannot be deleted with the SPOOLF command. These files can be deleted only by issuing an ABORTJOB command against the job number to which the $STDIN is associated. Under normal circumstances, you seldom need do this, because the system deletes $STDIN spool files when their associated job terminates. |
|