When you specify filespec,
you
may also use the DISK parameter
to
specify the amount of disk space
to
be
used by the spooler. TRSDOS
creates a file of the size specified.
If
you
do not specify DISK
=,
approximately
5K
of disk space
is
automatically allocated to filespec.
To prevent TRSDOS from allocating any disk space to SPOOL,
specify DISK
=
0.
filespec remains open
as
long
as
SPOOL
is
on.
Do
not REMOVE this
file or remove the disk from the drive without closing the file (by
issuing a SPOOL
devspec (NO) command).
You
cannot issue a SYSGEN library command if the spooler is on.
Once the spooler
is
turned off,
you
can turn it
on
again. The same
memory locations are used, but the following restrictions apply:
• The original parameters are not affected
by
turning devspec
off and then
on.
• Any parameter specified the second time cannot exceed the
memory or disk parameters originally given.
If
they
do,
an
error occurs.
Examples
SPOOL
*PR
TO
TE>:TFILE:0
(MEM=S,DISK=lS)
(ENTER)
allocates 5K of memory
and
15K of disk space
in
a file named
TEXTFILE/SPL
on
Drive
0.
Since you did not specify
an
extension
to
TEXTFILE,
it
defaulted
to
ISPL.
Any output for the printer
is
buffered and sent to the line printer (*PR)
as fast
as
the printer
can
accept the characters.
If
the 5K memory
buffer is filled, the data
is
written
to
the disk file TEXTFILE/SPL
on
Drive
0.
SPOOL
*PR
(BANK=l
,DISK=0)
(ENTER)
creates a 32K memory buffer for data sent
to
*PR. Any output for the
printer
is
sent
to
the memory buffer and then spooled
to
*PR when it
is
available
to
accept the data. Since the parameter DISK = is
specified without any size, none of the spooled data
is
sent to a disk
file.
If
the memory buffer is filled, TRSDOS does not process any more
printer data until *PR has printed enough data
to
bring the number of
characters waiting to
be
printed below 32K (the size of the memory
buffer).
SPOOL
(CLEAR)
(ENTER)
clears the information
in
the spool buffer.
SPOOL *
PR
(NO)
(ENTER)
1-118