Displaying Spool File Content [ Native Mode Spooler Reference Manual ] MPE/iX 5.5 Documentation
Native Mode Spooler Reference Manual
Displaying Spool File Content
To view the contents of a spool file, use one of these:
* the PRINT command
* the PRINTSPF utility
* the SPIFF utility
* the SPOOLF utility
* any text editor that edits variable-length files and that does not
have restricted file codes. (EDIT/3000 is such an editor)
* the FCOPY utility
PRINTSPF displays a spool file's contents in a formatted manner so that
you can examine the contents of both the data and the special overhead
area of each record. You can display a portion of your spool file, the
line numbers, and a certain number of characters on each line by using
PRINTSPF.
Because spool files are ordinary disk files, you can display them using a
text editor. The text editor eliminates the need for the SPOOK commands
TEXT, LIST, and FIND. Spool files have variable-length records. You must
use an editor that handles this. If you use EDIT/3000, enter the SET
VARIABLE command before you copy a file into your workspace. Then the
records are not truncated to 255 bytes.
To display output spool file O2050 using EDIT/3000, enter:
EDITOR
SET VARIABLE
SET LENGTH=lengthofrecord
SET RIGHT=lengthofrecord
T O2050.OUT.HPSPOOL
L ALL
The EDIT/3000 command SET VARIABLE ensures that the editor treats the
file as variable-record. The commands SET LENGTH and SET RIGHT override
the default display of 72 characters in EDIT/3000.
You may use EDIT/3000--or any editor that edits variable-length files and
that does not have restricted file codes--to modify the contents of a
spool file, but you cannot save the modified text under its current name
in the OUT.HPSPOOL group. You may save it under any valid file name in
your local file space. The new, modified file becomes unlinked.
To display output spool file O2345 23 lines at a time, using PRINT,
enter:
PRINT O2345.OUT.HPSPOOL
To display lines 23 through 56 of spool file O2345 using PRINTSPF, enter:
PRINTSPF "FILE=O2345 ;START=23 ;END=56"
PRINTSPF searches the current logon directory for O2345 first. If the
file is not found, PRINTSPF then searches OUT.HPSPOOL.
MPE/iX 5.5 Documentation