HP Search/XL User's Guide

3- 24
Output Format
If no output-related options are specified on the command line, HP Search sends output to your terminal
and to the temporary file SRCHLIST. Output from your last execution of HPSEARCH will overwrite any
previous contents of SRCHLIST. However, by specifying the options discussed in this section, you can
choose the way you want HP Search to display its output.
If you specify the QUIET option, only prompts and error messages are displayed on your terminal during a
search. All other output goes only to SRCHLIST (or the file you specified with the LIST option).
If you specify the LIST option without the QUIET option, output goes to the terminal and to the file
indicated in the LIST argument. HP Search will not send output to SRCHLIST if you specify a different
output file with the LIST option. Similarly, output generated by the MATCHLOG and SEARCHLOG
options goes to the files specified after these options.
Matching Lines
Probably the most important information derived from running HP Search is the location of the lines in
your files that match the patterns you have specified. A discussion of the various formats of this output
information is given below.
The Default Format. Before listing the first matching line in a file, HP Search prints a blank line and a
line containing the file name. On the line following the file name line, HP Search prints the first matching
line. Additional matching lines are printed one per line. Any line that cannot be printed on one screen line
is truncated, and a $ character is printed in the first or last column to indicate that HP Search has
truncated the line. At the end of every search, HP Search prints the number of files searched and the
number of matching lines found. An example is shown below:
FILE COBFILE.MYGROUP.ACCOUNT
124.01 $ This item must be the last item in the record.
6200.1 $ This should only be a last-resort action.
FILE MYFILE.MYGROUP.ACCOUNT
141 The last option requested was an option that required an $
2 files searched 3 matching lines found
Format Using the COUNT Option. If you specify the COUNT option, HP Search prints the number of
matches and the file name for each matching file. The output of the matching lines is suppressed. The
output format is shown below:
Matches Filename
------- --------
14 MYFILE .MYGROUP .ACCOUNT
2 YOURFILE.MYGROUP .ACCOUNT
Line and Record Numbers. All text lines are printed with the first ten columns reserved for numbering
unless you specify the UNN option. If this option is used, the text is printed starting in column 1. For
unnumbered files, the first five columns contain a right-justified record number and the next five columns
are blank, as shown below:
FILE UNNUMBER.MYGROUP.ACCOUNT
95 This matching line is the 95th record in the file.