Spooler Utilities Reference Manual

Peruse
Spooler Utilities Reference Manual522295-003
3-36
LIST Command
5. The LIST command below shows the first page, the second page, and the next-to-
last page in the job. Page 5 is not listed because the current page changes during
the LIST command. Also see the PAGE Command on page 3-42.
_P 5
_L F, *, L-1
6. You can use /OUT $S.#device/ to print all or only a few pages of an already
spooled file. The example below prints page 1 and pages 16 through 20 of the job.
Because the destination is a spooler collector, formatting-control information is
included by default, so the C parameter is unnecessary. (You would use the N
parameter to omit formatting-control information.)
_LIST /OUT $S.#LP/ 1, 16/20
7. Spooler accommodates a maximum of 99,999,999 lines in an EDIT file.
The command below lists the entire job to the disk file $DISK.SVOL.MYFILE,
which is an EDIT file. If $DISK.SVOL.MYFILE already exists, ! specifies that
Peruse should purge it and create a new EDIT file with the same name before
listing begins.
_LIST E /OUT $DISK.SVOL.MYFILE !/ A
8. The command below lists pages 1 through 20 of the current job to a spooler job file
named $OLDVOL.SAVE.MYJOB. Because the ! parameter is omitted, Peruse
appends the listed pages to the end of $OLDVOL.SAVE.MYJOB if that file already
exists.
_LIST S /OUT $OLDVOL.SAVE.MYJOB/ 1/20
9. You can use Peruse to check a spooled TFORM file for errors before you use
/OUT $S.#device/ to print the pages you want. If you find unacceptable errors,
you can rerun the job before printing out any pages. If there are no errors, you can
follow the example below to print pages 16 through 19. Because the file is a
TFORM file, you must specify the C parameter to retain the formatting-control
information.
_FIND "**ERROR"
_LIST /OUT $S.#LP/ 16/19 C
10. You can use Peruse to compress data for more efficient archiving. The command
below stores the contents of a spooler job (file code 129) into a spooler job file. It
compresses ASCII characters into 5 bits instead of 8. The A specifies all pages
and the C causes these pages to retain formatting-control information. The file
created can be read later using Peruse or any program that uses PRINTREAD.
_LIST C /OUT $DISK.SVOL.ARCH01/ AC