HP 3000 Manuals

Viewing the Output of a Spooled File [ Native Mode Spooler Reference Manual ] MPE/iX 5.0 Documentation


Native Mode Spooler Reference Manual

Viewing the Output of a Spooled File 

Input spool files are automatically labeled private.  Ordinarily, you may
not view them.  Nevertheless, you may view an output spool file quite
easily.

You can view an output spool file in any of the following ways:

   *   using a text editor

   *   using the PRINT command

   *   using FCOPY

   *   using the SPIFF utility

   *   using the PRINTSPF utility

   *   using the HPBROWSE utility, if it is available on your system

Using a text editor 

One way to look at the contents of your output spool file is to use a
text editor.  For example, suppose that you created a spooled output file
and you are using EDIT/3000.

If you use EDITOR (EDIT/3000) to examine or edit your spool file, EDITOR
may give you this warning:

     ***WARNING*** RECORD SIZE TRUNCATED TO 255 BYTES

You may ignore this warning, unless the largest record in your spool file
is greater than 255.

By default, EDIT/3000 displays only the first 72 characters in a record.
In order to view longer lines, do this:  run EDIT/3000, set internal
values for the editor, and then text in your spool file.

     editor

     set variable
     set length=NN 
     set right=NN 
     text filename 

where NN is the length of the longest record (<= 255) in the file and
filename is the name of the file that you wish to edit.

The command set variable instructs EDIT/3000 to accept long lines of
text.  The commands set length= and set right= instruct EDIT/3000 to
recognize the record length of your spool file as "normal."

To view the entire spool file, enter this EDITOR command:

     l all

EDITOR's l all command lists the entire contents of the file that you
loaded with text.

If you use EDITOR to modify the file, you cannot save the modified file
with its original name (in OUT.HPSPOOL). You may, however, save it in
your local file space (your logon group and account).


NOTE The file that you save in your local file space becomes unlinked and is no longer a spool file. The original spool file (in OUT.HPSPOOL) remains intact and unaffected, however.
You cannot view output spool files with certain editors because they have restricted file codes or record types. You cannot view input spool files with any editor. EDIT/3000 works well with output spool files. You have to experiment with your favorite editor. Using the MPE/iX PRINT command You can also look at your output spool file by using the PRINT command. Enter: PRINT Onnnn.OUT.HPSPOOL or PRINT outspfile if you copied the output spool file into your account. The PRINT command displays the spool file one screen at a time, without the overhead in each record. Using FCOPY Similarly, you may use FCOPY to display the contents of your output spool file on the screen. Enter: FCOPY FROM = spool file ;TO = where spool file is your output spool file. Using the SPIFF utility [REV BEG] You can use the SPIFF utility to view linked output spool files.[REV END]
NOTE SPIFF allows you to view only those output spool files to which you have access and which are linked to the spooling subystem. You cannot view a spool file in your local group and account using SPIFF. Chapter 3 has information about linked spool files.
Enter RUN SPIFF.PUB.SYS After SPIFF displays its introductory banner, enter: TEXT #Onnnn LIST ALL where Onnnn is the name of the output spool file. For example, if you have an output spool file named O1234, enter: TEXT #O1234 Chapter 6 has a complete description of the SPIFF utility and its commands. Using the PRINTSPF utility Another way to look at the contents of your input and output spool files is to use the PRINTSPF utility.
NOTE You must have system manager (SM) capability to display input spool files with PRINTSPF.
PRINTSPF displays the file in a formatted manner so that you can examine the contents of both the data and the special overhead in each record. To display one of your output spool files, enter: PRINTSPF Onnnn where Onnnn is the output spool file name. For example, if you have an output spool file named O1234, enter: PRINTSPF O1234 Try this utility with your spooled output file.


MPE/iX 5.0 Documentation