
Chapter 8 647
Command Definitions SP-Z
STOPSPOOL
STOPSPOOL
Terminates spooling to a specified device or device class.
Syntax
STOPSPOOL[{ ldev[ ;OPENQ] devclass }]
Parameters
ldev The logical device number of a spooled device. The spooler process gives up
ownership of the spooled device. If the OPENQ parameter is omitted, the
device becomes available only for nonspooled I/O. When a logical device is
assigned to more than one device class, to restart spooling for a specific
device class issue an explicit STARTSPOOL request for that class.
devclass The device class specified in the system I/O configuration. Subsequent I/O
directed to this device class does not take place to/from a spool file. I/O
goes directly to/from a logical device if one is available within the device
class. If none is available, the program is unable to open the file.
OPENQ May be specified with the ldev parameter only. The spooler process leaves
the queue in an OPEN state, or opens the queue if previously shut. Default
is SHUTQ.
Operation Notes
Use the STOPSPOOL command to stop spooling for a single logical device, or for all devices
assigned a common device class. Using the devclass parameter in a STOPSPOOL command
shuts the queue for that device class. When you specify ldev, however, you may shut the
spooling queue or leave it open. Default is SHUTQ.
Use
This command may be issued from a session, job, program, or in BREAK. Pressing Break
has no effect on this command. It may be issued only from the console unless distributed to
users with the ALLOW or ASSOCIATE command.
Examples
To terminate spooling to logical device number 6 and cause the spooler process to
relinquish control of that device, enter:
STOPSPOOL 6
Spooling also terminates for any device class that references this device unless
STARTSPOOL has been issued for a specific device class.
To stop directing output for device class LP to a spool file (provided a STOPSPOOL 6 has
also been issued), enter: