LISTSPF [ Native Mode Spooler Reference Manual ] MPE/iX 5.0 Documentation
Native Mode Spooler Reference Manual
LISTSPF
Produces a listing of spooled files, both input and output. (Native
Mode)
Syntax
LISTSPF[[IDNAME=] {spoolid }] [[;SELEQ=] {select-eq }]
[ {(spoolid [,spoolid]...)}] [ {^indirect_file }]
[;DETAIL]
[;STATUS]
Parameter definitions
spoolid One or more spool file IDs: #Innn for input spool
files or #Onnn for output spool files. These IDs
are assigned by the spooling subsystem at spool
file creation time. The # is optional; but if it
is used, an O or I must also be used. If it is not
used, the O is also optional for output spool
files; that is, if neither [#]O nor [#]I is
specified, then [#]O is assumed.
The symbol @ may be used to specify all
spool files.
The symbol O@ may be used to specify all
output spool files.
The symbol I@ may be used to specify all
input spool files.
If @, O@, or I@ is specified, it must be the
only spoolid value supplied. @, O@, and I@
are mutually exclusive.
A user with SM or OP capability or a console user
who specifies O@ sees all output spool files on the
system. A user with AM capability who specifies O@
sees all output spool files created by users in the
same account. All other users are limited to files
they have created. Similar rules apply to I@ and
@. The default is all the output spool files
created by the current user.account. The default
spoolid for the console user is all the output
spool files on the system.
__________________________________________________
NOTE If you specify duplicate spoolids, the system
displays a warning message.
__________________________________________________
select-eq The selection equation is used as a filter on the
set of spool files selected. Only spool files
whose attributes satisfy all filter requirements is
listed. For example, you use the following command
to display all the output spool files from
user.acct that have less than 100 pages:
LISTSPF O@;SELEQ=[(OWNER=user.acct)AND(PAGES<100)]
If you are not an SM, OP, AM, or console user, the
following command displays all the output files in
your default group with a priority greater than 2
that were created before September 30, 1989.
LISTSPF O@;SELEQ=[(PRI>2)AND(DATE<09/30/89)]
Selection equations have this format: (In this
display, interpet ::= as "can be replaced by".)
select-eq ::= [equation]
Begin and end a selection equation with square
brackets ([ and ]).
{ {> } }
{ {>=} }
{parm {< } value }
{ {<=} }
{ {<>} }
equation ::= { {= } }
{ }
{(equation) }
{NOT equation }
{equation {AND} equation}
{ {OR } }
The logical operator AND takes precedence over the
logical operator OR. For example:
LISTSPF O@;SELEQ=[FILEDES=REPT OR OWNER=BOB.ACCTG AND
PRI>8]
[FILEDES=REPT OR OWNER=BOB.ACCTG AND PRI>8] is the
same as [FILEDES=REPT OR (OWNER=BOB.ACCTG AND
PRI>8)].
value ::= Appropriate values per data type. For
example, STATE=READY or PRI>6.
parm ::= The parameter (parm) may be one of several
attributes of the spool file to be used as filters.
The parm choices are described in a list below.
__________________________________________________
NOTE For string types other than DATE, such as
user name, only the relational operators "="
and "<>" apply. Using any others results in
an error.
__________________________________________________
* parm ::=DEV: LDEV number, device name, or
device class name. You can use wildcards
for device name and device class name.
* parm ::= FILEDES: Formal or actual file
designator for the spool file. For example,
if you enter the file equation below and
print to it, EPOCLONG becomes the spool
file's FILEDES.
FILE EPOCLONG;DEV=EPOC;ENV=LPLONG.ENV.SYS
PRINT MYFILE,*EPOCLONG
You may use wildcards.
This keyword supports selection on the null
string by entering FILEDES= "" (You may also
use single quotes). You must include such a
construct if you specifically want to select
such an attribute. Note that "" is not the
same as " "; the blank is significant.
* parm ::= SPOOLID: Spool File identifier
number in the format #Onnn or #Innn.
The "#" is optional; but if it is used, an O
(for output) or an I (for input) must also
be used. If # is not used, the O is also
optional for output spool files; that is 123
is the same as #O123. The valid range of
spoolids is 1 <= nnn <= 9,999,999. (The
commas are for clarity; do not enter any
commas in the actual equation.)
* parm ::= PAGES: Number of pages in the spool
file (if known). A positive integer number
is expected.
___________________________________________
NOTE This attribute does not apply to input
spool files; therefore, any logical
condition involving the attribute
always returns FALSE when tested
against an input spool file.
___________________________________________
* parm:= FORMID: Form name. You can use
wildcards. (The formid is an ASCII string
up to 8 characters, the first of which must
be a letter.). Refer to the notes
accompanying the FILEDES and PAGES
description.
* parm:= STATE: READY, ACTIVE, OPEN, CREATE,
PRINT, PROBLM, DELPND, SPSAVE, DEFER, XFER.
* parm ::= JOBNAME: Job or session name under
which the spool file was created. The job
name can consist of up to 8 alphanumeric
characters, the first of which must be a
letter.
For a job input spool file, the JOBNAME
shown is allocated to that job, not the job
or session that streamed it.
You may use wildcards.
* parm ::= DISP: Disposition: SPSAVE or
PURGE. Refer to the notE accompanying the
PAGES description.
* parm ::= COPIES: Number of copies. Minimum
is 1, maximum is 65,535. Refer to the note
accompanying the PAGES description.
* parm ::= PRI: Output priority minimum is 0,
maximum is 14.refer to the note accompanying
the PAGES description.
* parm ::= JOBNUM: Job or session number under
which the spool file was created, for
example: #S257, #J329, or Sn (the "#" is
optional) where 1 <= n <= 16,383. (The
commas are shown for clarity; do not enter
any commas in the actual equation.)
For a job input spool file, the JOBNUM shown
is allocated to the job, not the job or
session that streamed it.
You may use some wildcards; J@ accepts all
jobs, S@ accepts all sessions. J'@ and S'@
are also allowed, The apostrophe (')
indicates an imported spool file or a spool
file recovered during START NORECOVERY.
* parm ::= RECS: Number of records in the
spool file. A positive integer is expected.
* parm ::= OWNER: The user under which the
spool file was created. The format of the
owner is user.account. If the account is
not specified, the user's current account is
assumed. You can use wildcards.
For a job input spool file, the OWNER is the
user logon for the job, not the job or
session that streamed it.
* parm ::= JOBABORT: Select based on whether
or not this is the $STDLIST of a job that
aborted when an error was encountered but no
CONTINUE was in effect.
Valid values are TRUE and FALSE. Only "="
and "<>" are allowed as relational
operators. Refer to the note accompanying
the PAGES description.
* parm ::= DATE: Creation date in the format
mm/dd/yy or mm/dd/year. Note that the year
can be in the form of yy, as in 10/10/88, or
in the form of year, as in 10/10/1988; both
are legal syntax for the DATE parameter.
^indirect_file The indirect_file parameter 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. There is no restriction on the indirect
file code. If the record size exceeds 277, only
277 characters per record are read and a warning is
issued. Backreferencing to a formal file
designator is also allowed for an indirect_file
name; that is, ^*filename is allowed. Any file is
accepted as an indirect_file, unless the file
system returns an error from FOPEN or FREAD.
__________________________________________________
NOTE There is no limit to the number of records in
the indirect_file, only the total character
count.
__________________________________________________
Records are processed as follows:
* Leading and trailing blanks are stripped.
* If the last nonblank character is an
ampersand (&), it is also stripped;
otherwise, one blank is added back to the
end of the record as a delimiter.
* The character count of the record is added
to that of the records processed previously.
If the total character count exceeds 277, an
error is returned. If the total is less
than 277, the current record is appended to
previous records.
* This process repeats until either 277
characters have been counted or the
end-of-file is detected. Records
terminating with or without ampersands may
be mixed as desired in the indirect file.
* If the resulting string is <=277 characters,
it is parsed.
* If the parser detects a syntax error, or if
any nonblank character follows the closing
bracket (]) of the select-eq, an error is
returned and the select-eq is not processed.
DETAIL Produces a two-line description of the specified
spool file(s). The default is a one-line display
(not detailed).
STATUS By default, LISTSPF displays a listing of selected
spool files, followed by a statistical summary of
those spool files, known as the status display.
Specification of the STATUS option causes only the
status summary to be displayed summarizing the
specified file set. STATUS and DETAIL cannot be
specified together.
Operation notes
This command is provided to enable users to obtain a list of spool file
information without having to look for it within a list that includes
other files.
The display for LISTSPF is different from the SHOWIN/SHOWOUT display.
LISTSPF displays both output and input spool files. The display shows
output spool files, then input spool files, and finally a summary status
display.
The parameters are divided into three groups: selection, detail and
status.
The selection group allows a user to limit the display of spool files to
a subset of the overall group of spool files on the system.
The detail parameter displays more than the default information on the
files that have been selected.
The status parameter displays summary status only.
These parameters can be combined as desired.
This command displays status information for one or more spool files.
The information reflects the status at the time the command is entered
and always appears on the standard list device. Within device or device
class, READY, CREATE, PRINT, and XFER state output spool files are
displayed first, sorted by priority and then by date and time. Output
spool files in DEFER, PROBLM, or SPSAVE states are shown next sorted by
order of state and then priority and time.
Output spool files are displayed first, followed by input spool files and
the status display. The display for input spool files is not sorted.
Use LISTSPF when all you need is a listing of spool files.
SPOOLF O@;SHOW, for example, may lock the SPFDIR and JMAT tables for
extended periods, during the execution of the command.
When many spool files exist, this can result in lengthy delays in vital
user-initiated actions.
LISTSPF does not incur lengthy delays.
Refer to the "Operation" discussion of the SPOOLF command.
Display field and description:
An example of the first line of the display for LISTSPF is:
______________________________________________________________________________________
| |
| |
| SPOOLID JOBNUM FILEDES PRI COPIES DEV STATE RSPFN OWNER |
| |
| #01 J12345 $STDLIST 6 1 EPOC CREATE RSPFN THISUSER.ACCOUNT1 |
| |
______________________________________________________________________________________
The fields of the display for LISTSPF are described below.
SPOOLID The unique spool file identifier.
JOBNUM The job or session identifier of the job or session
that created the spool file. The exception to this
is that the jobnum for a JOB input spool file is
the job number assigned the process whose $STDIN is
(or will be) this input spool file, as opposed to
the jobnum of the process that streamed the job.
Job numbers containing an apostrophe (J123)
indicate that the spool file was imported by
SPFXFER or RESTORE, or was recovered after a START
NORECOVERY.
FILEDES The formal or actual file designator for the spool
file. Printing to a file equation such as FILE
EPOCLONG;DEV=EPOC;ENV=LP88LONG.HPENV.SYS creates
spool files whose formal designator is EPOCLONG.
DEV The LDEV, device name, or device class name that is
the destination of the spool file. LDEVs are
intentionally displayed with leading zeroes to
simulate a device name. When you specify LDEVs
with SELEQ, you need not supply the leading zeroes.
PRI The input or output priority of the spool file.
COPIES The total number of copies of the spool file to be
printed.
STATE The current state of the spool file. READY and
DELPND apply to input spool files as well as output
spool files.
* CREATE: An output spool file is being
created; that is, an output spooled device
has been opened and is being written to,
generating an output spool file. When the
device is closed, the spool file enters the
READY state.
* READY: An output spool file is ready to be
printed, or an input spool file is ready to
be accessed.
* ACTIVE: An input spool file is active when
it is being read from a STREAM file or a
spooled device to disk.
* OPEN: A JOB input spool file (the $STDIN for
a batch job) is being accessed by the job's
CI process or a DATA input spool file is
being accessed by a process.
* PRINT: An output spool file is being
printed.
If this command is entered while a trailer
is being printed, you may observe two spool
files in the PRINT state at the same time
for the same device.
The native mode spooler does not open its
own spool files. It calls a spool file
management routine to select the next spool
file and open it.
In addition, there is a new NMS per-device
configuration parameter that is currently
not enabled because of a lack of a user
interface for it. This allows you to
specify that no banner (trailer and header)
be printed between copies of the same spool
file if copies are printed consecutively on
the same device. The alternative is the
default mode, namely that banners be printed
between all copies of all spool files.
Because the output spooler does not select
its own file and because it only prints one
copy of a file at a time, it has no idea
which file the file management routines will
select for it. The spooler solves this
problem by asking for its next spool file
while the current spool file is open. It
can then check to see if it should print a
trailer and a header.
This means that the output spooler process
can have two spool files open at the same
time while it makes this test. But spool
files opened by a spooler process are
displayed in the ACTIVE state by SHOWOUT or
the PRINT state by LISTSPF. As a result, it
appears that the spooler is printing two
files at the same time.
* DEFER: An output spool file is in the
deferred state.
* SPSAVE: The SPSAVE option was specified when
the spool file was created or at any time
before it would have been deleted after its
final copy was printed. That final copy has
been printed, so the spool file is now in
this state instead of being deleted.
* PROBLM: The target device of the spool file
does not match any device name or device
class on the system. This usually occurs
because the spool file has been restored to
a system that has a configuration different
from the system from which the spool file
was stored.
* DELPND: Either the spooler has printed the
last copy of the output spool file and is
waiting for one or more users to close the
spool file before purging it, or someone has
requested that the spool file be deleted and
the file management routines are waiting for
the last FCLOSE of the spool file before
purging it.
These commands place a spool file in the
DELPND state:
* PURGE
* DELETESPOOLFILE
* SPOOLF nnn;DELETE
* STORE with the PURGE option
* XFER: The spool file has been selected for
transportation from one node of a network to
another. The XFER state is supported (in
that it may be displayed, and used as a
STATE in a selection equation), but is
provided only for use as desired by
third-party software providers. The spooler
never places a file in this state nor uses
the state as a basis for spooler actions.
RSPFN The column under each letter R, S, P, F, and N,
contains the respective letter as a flag indicating
something about the spool file described in that
row.
* R indicates a restartable spooled job file.
* S indicates that SPSAVE disposition has been
specified for this spool file. The spool
file are saved in the OUT.HPSPOOL group and
account after the last copy is printed.
* P indicates that the spool file is private.
* F indicates that the spool file has a forms
message associated with it and requires
special forms on which to print. If a
formid is present, its identity can be seen,
using the ;DETAIL option, on the second line
of the display for the given spool file.
* N indicates that the spool file is not
complete because insufficient account-level,
group-level or system disk space was
available when the spool file was created or
the system aborted while the spool file was
being created.
OWNER This is the fully qualified name of the creator of
the spool file.
Display field and description:
The optional second line of the display has the following appearance:
_________________________________________________________________________________
| |
| |
| FORMID JOBNAME COPSRM SECTS RECS PAGES DATE TIME |
| |
| TESTJOB 1 250 500 ~9 12/20/88 8:39 |
| |
| |
_________________________________________________________________________________
FORMID An 8-character display, the first of which is a
letter. If an F appears in the RSPFN column but
this field is blank, it means that the file has a
forms message but formid was not specified.
JOBNAME The job or session name of the user who created the
spool file or, for a job input spool file, the name
of the job that uses the input spool file as its
$STDIN file..
COPSRM The number of copies of this file that remain to be
printed, including any currently printing copy.
SECTS The number of sectors occupied by the spool file.
RECS The number of records in the spool file.
PAGES The number of physical pages in the spool file.
This quantity is accurate only for CIPER protocol
and 2680/88 page printers, and then only if the
device has printed at least one complete copy. The
device keeps track of the pages as they are printed
and returns the correct count at the end of the
copy. Until the actual count is known, an
approximate count--calculated as number_of_records
/ 60, and denoted by a leading tilde (~)--is
displayed.
__________________________________________________
NOTE For serial printers, even the count without
the tilde is approximate because it is
calculated as a best guess from the spool
file data. It is not returned by the device
because serial printers have no provisions
for reporting this information.
__________________________________________________
DATE The date that the file first entered the READY
state (mm/dd/yy).
TIME The time that the file first entered the READY
state in 24-hour form (hh:mm).
The status display has the following format:
_______________________________________________________________________
| |
| |
| INPUT SPOOL FILES OUTPUT SPOOL FILES |
| ACTIVE = 1; CREATE = 2; READY = 3; |
| OPEN = 2; DEFER = 1; SELECTED = 4; |
| READY = 3; DELPND = 0; SPSAVE = 1; |
| PRINT = 1; XFER = 0; |
| PROBLM = 0; |
| |
| |
| TOTAL IN FILES = 6; TOTAL OUTFILES = 8; |
| IN SECTORS = 144; OUT SECTORS = 13090; |
| |
| OUTFENCE = 6 |
| OUTFENCE = 10 FOR LDEV 6 |
| |
_______________________________________________________________________
This display consists of three parts. The values
in the first two parts represent only those spool
files selected for display.
* The itemized count of spool files in each of
the various states. They are shown in two
groups, input spool files to the left of the
display and output spool files to the right.
Of these, only SELECTED is not a state.
Instead, SELECTED shows the total count of
spool files whose output priority is higher
than the global outfence; that is, SELECTED
displays the sum of printing files plus
those READY files whose output priority is
above the global outfence.
* The total number of input spool files, the
sector count for input spool files, the
total number of output spool files, and the
sector count for output spool files.
* The global outfence and any device-specific
outfences.
Use
This command may be issued from a session, a job, a program, or in Break.
It is breakable. Only files to which the user has access are displayed.
Examples
Following are some examples of the displays produced by LISTSPF. The
first and third examples display all output spool files for the current
user.account not using the console. The second example displays all
spool files for the current user.account not using the console.
_______________________________________________________________________________
| |
| |
| LISTSPF |
| |
| SPOOLID JOBNUM FILEDES PRI COPIES DEV STATE RSPFN OWNER |
| |
| #0123 J12 SP 13 2 PP PRINT F DEV.HPE |
| #0124 S14 LIST 9 1 00000012 READY F DEV.HPE |
| #0128 J144 $STDLIST 8 1 EPOC READY DEV.HPE |
| #01233 S1234 OUTLIST 0 1 FASTLP DEFER DEV.HPE |
| |
| INPUT SPOOL FILES OUTPUT SPOOL FILES |
| ACTIVE = 0; CREATE = 0; READY = 2; |
| OPEN = 0; DEFER = 1; SELECTED = 3; |
| READY = 0; DELPND = 0; SPSAVE = 0; |
| PRINT = 1; XFER = 0; |
| PROBLM = 0; |
| |
| TOTAL IN FILES = 0; TOTAL OUTFILES = 4; |
| IN SECTORS = 0; OUT SECTORS = 5964; |
| |
| OUTFENCE = 6 |
| |
| |
_______________________________________________________________________________
Single-Line Display (;DETAIL not specified)
______________________________________________________________________________________
| |
| |
| LISTSPF @;DETAIL |
| |
| SPOOLID JOBNUM FILEDES PRI COPIES DEV STATE RSPFN OWNER |
| FORMID JOBNAME COPSRM SECTS RECS PAGES DATE TIME |
| |
| #O123 J12 SP 13 2 PP PRINT F DEV.HPE |
| TESTJOB 1 250 500 125 07/09/88 8:39 |
| |
| #O124 S14 LIST 9 1 00000012 READY F DEV.HPE |
| PAYCHECK TESTJOB 1 250 500 ~9 12/20/88 8:39 |
| |
| #O128 J144 $STDLIST 8 5 EPOC READY DEV.HPE |
| LPJOB 3 250 127 21 12/20/88 22:19 |
| |
| #O1233 S1234 OUTLIST 0 1 FASTLP DEFER DEV.HPE |
| TESTJOB 1 250 500 ~9 12/20/88 8:39 |
| |
| #I564 J164 $STDIN 00000010 READY DEV.HPE |
| BATCHJOB 17 12 2/20/88 22:23 |
| |
| |
| INPUT SPOOL FILES OUTPUT SPOOL FILES |
| ACTIVE = 0; CREATE = 0; READY = 2; |
| OPEN = 0; DEFER = 1; SELECTED = 3; |
| READY = 1; DELPND = 0; SPSAVE = 0; |
| PRINT = 1; XFER = 0; |
| PROBLM = 0; |
| |
| TOTAL IN FILES = 1; TOTAL OUT FILES = 4; |
| IN SECTORS = 17; OUT SECTORS = 1000; |
| |
| OUTFENCE = 6 |
| |
| |
| |
______________________________________________________________________________________
Two-Line Display
______________________________________________________________
| |
| |
| LISTSPF;STATUS |
| |
| INPUT SPOOL FILES OUTPUT SPOOL FILES |
| ACTIVE = 0; CREATE = 0; READY = 2; |
| OPEN = 0; DEFER = 1; SELECTED = 3; |
| READY = 0; DELPND = 0; SPSAVE = 0; |
| PRINT = 1; XFER = 0; |
| PROBLM = 0; |
| |
| TOTAL IN FILES = 0; TOTAL OUTFILES = 4; |
| IN SECTORS = 0 ; OUT SECTORS = 1000; |
| |
| OUTFENCE = 6 |
| |
| |
______________________________________________________________
Status Display
Related information
Commands SPOOLF, SHOWIN, SHOWOUT, LISTFILE
Manuals MPE/iX Commands Reference Manual Volumes 1 and 2
(32650-90003 and 32650-90364)
MPE/iX 5.0 Documentation