MPE/iX Commands Reference Manual (32650-90864)

Chapter 6 443
Command Definitions P-R
PRINT
n Specifies the last record of the file to be displayed. An n is relative to 1. If n
is a negative number, it specifies a location relative to the end-of-file, that
is, -5 indicates the fifth record from the end-of-file. Zero is an invalid
specification. Default is the last record of the file.
NOTE For byte stream files, you cannot display one or more records by specifying a
negative number with the keywords START= or END=. If you try to do so, the
result will be unpredictable because the end-of-file for byte stream files is the
total byte count of the file, and not the number of the last record.
p Specifies the number of lines to be displayed before a page break occurs.
Default is 23 lines for interactive users and 0 (continuous) for
non-interactive users (that is, in a job). Specifying 0 for p suppresses page
breaks in the output and produces continuous output from the beginning
to the end of the file.
If filename contains more than p records and you are working interactively,
the command displays p lines and then prompts you for a reply indicating
whether or not more output is desired, as follows:
(NEXT/EOF) CONTINUE?
NEXT is the next record number to be printed, and EOF is the end-of-file
value that would be displayed by LISTF <filename>,``2. If you are
reviewing a byte-stream file, NEXT displays the next logical record,
whereas EOF is the byte count of the file.
Table 6-1 defines the range of valid responses to control the output.
Table 6-1 PRINT Command Control
Responses are case insensitive. Note that Return instructs PRINT to
continue printing.
In jobs, no prompt for continuing output is generated. Instead, a page-eject
control character is written to outfile every p lines. A page value of zero
suppresses all page breaks, and filename is printed from m through n,
inclusive. This is the default for jobs.
UNN Suppresses line numbering in the display, regardless of whether the disk
file is numbered or unnumbered. UNN is the default.
Response Result
Y, Yes Continue printing at record next
N, NO, Break Stop printing
-m (integer) Continue printing at record next-m
+m (integer) Continue printing at record next+m
m (integer) Continue printing at record m
other, Return Continue printing at record next (default)