COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

1595 READY 4 A 5,40 01/20 1 59 DEVELOP QUINN #ANON
1671 HOLD 4 A 5,40 12/15 1 1 DEVELOP QUINN #LP3
1672 PRINT 4 A 5,40 12/15 1 1 DEVELOP QUINN #LP3
1737 READY 4 5,40 01/28 1 8 DEVELOP QUINN #ANON
1739 HOLD 4 5,40 01/11 1 1 DEVELOP QUINN #HT
1779 HOLD 4 5,40 01/28 1 1 DEVELOP QUINN #HT
2423 READY 4 A 5,40 01/20 1 4 DEVELOP QUINN #MURPHY
This is much like the report that PERUSE gives you at the beginning of its execution, except that
you have to ask for jobs belonging to user 5,40, or SPOOLCOM lists all its jobs, not only yours.
Suppose that you want to delete the two jobs belonging to you that have been around since
December 15 (jobs 1671 and 1672). In PERUSE, you must establish 1671 as the current job,
delete it, establish 1672 as the current job, and delete it. With SPOOLCOM you can give the
command:
JOB (OWNER 5,40, DATE FROM DEC 15 1988 THRU DEC 15 1996)
SPOOLCOM reports only your jobs created on that date. When you are certain that the jobs of
12/15 are the right ones, you can delete the chosen jobs with the command:
JOB (OWNER, DATE FROM DEC 15 1988 THRU DEC 15 1996), DELETE!
If you do not use the exclamation mark (!) SPOOLCOM asks you about each job. If you use OWNER
without a user ID, SPOOLCOM uses the creator accessor ID (your user ID).
For two jobs, SPOOLCOM requires more keystrokes than PERUSE, but suppose you wanted to
delete all your jobs created on or before January 11. The SPOOLCOM command for that is:
JOB (OWNER, DATE THRU JAN 11 1997), DELETE!
Similarly, you can delete all jobs whose current location is #ANON by using the command:
JOB (OWNER, LOC #ANON), DELETE!
You can delete all jobs whose current state is HOLD by using the command:
JOB (OWNER, STATE HOLD), DELETE!
If you want the spooler to print one copy each job in a certain set but direct them to another user
at another spooler location, and delete those jobs after they are printed, you can give the command:
JOB (OWNER, LOC #ANON), HOLD, REPORT DEVELOP LEE, HOLDAFTER OFF, LOC #PRT.A, START
DEV
The SPOOLCOM command DEV is useful for discovering what devices are configured for your
spooler, and for skipping pages on a spooler job. If you give SPOOLCOM a simple DEV command
with no parameters, you get a report like this:
DEVICE STATE FLAGS PROC FORM
$LP1 JOB 159 H $SPLP
$LP2 WAITING ET $SPLP RED
$SPECL.#TYPE1 WAITING H !T $SPLP
$SPECL.#TYPE2 WAITING H ! $SPLP
\ARIES.$S WAITING H $SPLX
\VIRGO.$S WAITING H $SPLX
This report shows:
Two print devices, $LP1 (which is printing job 159) and $LP2 (which is free, but has a form
name established, so the spooler routes only jobs with the form name RED to $LP2)
Two print processes, $SPLP and $SPLX
A device named $SPECL that apparently performs at least two distinct services (selected by
the specification #TYPE1 or #TYPE2, which the $SPECL process obtains from its open message),
which is free
The spooler is configured to enable you to send jobs to spooler collectors on two other
systems—\ARIES and \VIRGO, which are free.
910 Printer and Spooler Output