The ALTER option of the SPOOLF command is used to alter the characteristics of a print file, known as a spoolfile. You can use this command to defer printing to a later time, to change priority to print sooner, to send the file to a different printer, or to print additional copies. You cannot use this command for private files.
To obtain information about multiple spoolfiles |
 |
Use the LISTSPF command to obtain information about multiple spoolfiles. For example:
The screen displays:
SPOOLID JOBNUM FILEDES PRI COPIES DEV STATE RSPFN OWNER
#O55 S16 PRNT 6 1 LP READY SM.MANAGER
#O56 J31 $STDLIST 8 1 LP SPSAVE S SM.MANAGER
INPUT SPOOL FILES OUTPUT SPOOL FILES
ACTIVE = 0; CREATE = 0; READY = 1;
OPEN = 0; DEFER = 0; SELECTED = 0;
READY = 0; DELPND = 0; SPSAVE = 1;
PRINT = 0; XFER = 0;
PROBLM = 0;
TOTAL IN FILES = 0; TOTAL OUT FILES = 2;
IN SECTORS = 0; OUT SECTORS = 32;
OUTFENCE = 7
|
To alter the print device |
 |
Use the SPOOLF command with the appropriate identifiers and the ALTER option. Alter the print device to device class LP2 for three spoolfiles by entering:
SPOOLF IDNAME=357,375,458;ALTER;DEV=LP2
|
By grouping multiple idnames within parentheses, you may omit the IDNAME= keyword.
To omit IDNAME=, enter:
SPOOLF (357,375,458);ALTER;DEV=LP2
|
You may specify a device class, as in the example, or you may specify a logical device number or device name.
To print more than one copy |
 |
Use the ALTER option to print more than one copy of a spoolfile for example, with a spoolfile identification of #O14, enter:
SPOOLF #O14;ALTER;COPIES=2 Return
|
To ask for a list of unprinted reports |
 |
To ask for a list of unprinted reports, use the LISTSPF command. You can use this command to obtain information by spoolfile identifier (SPOOLID) for specific output spoolfiles. For example:
You may omit the keyword IDNAME= and the letter O:
If you have more than one SPOOLID, you may string them as follows:
LISTSPF IDNAME=357,375,458
|
By grouping multiple idnames within parentheses, you may omit the IDNAME= keyword:
To delete one or more spoolfiles |
 |
Enter:
SPOOLF (357,375,458);DELETE;SHOW
|
If you are using SPOOLF to delete input spoolfiles you must use the format Innn for the spoolfile identification. Only input data files may be deleted with the SPOOLF command.
Also, $STDIN input spoolfiles cannot be deleted with the SPOOLF command. These files can be deleted only be issuing an ABORTJOB command against the job number to which the $STDIN is associated. Under normal circumstances, you seldom need to do this because the system deletes $STDIN spoolfiles when their associated job terminates.
To use a selection equation to delete spoolfiles |
 |
The selection equation is used as a filter on the set of spoolfiles selected. Only spoolfiles whose attributes satisfy all filter requirements are listed. Use selection equations with the DELETE and ALTER options.
Enter:
SPOOLF O@;DELETE;SELEQ=[PRI<8]
|
You may put your selection equation in an indirect file.
An indirect file specifies the name of a file containing the selection equation. It must be preceded by a caret (^). The selection equation contained in the file may not exceed 277 characters in length, including the brackets in which it must reside.