HP Search/XL User's Guide

3- 21
Output File Options
By default, HP Search automatically creates four temporary files every time you run it. These files contain
information specific to the last search executed and are overwritten each new execution of HP Search. Four
options are available to redirect this information to permanent files instead (see Table 3-4 below).
If you do not specify the optional "REPLACE" argument for these options, HP Search prompts you before it
overwrites an existing permanent file. If you do specify the "REPLACE" argument, HP Search does not
prompt you before overwriting an existing permanent file. File equations are used if they exist for the
specified file name.
When using any of these options, the file is replaced before the search begins. You cannot use any of the
files specified in these options as an indirect file also, because the file would be replaced before it was
processed.
LIST <filename> [REPLACE]. Use this option to direct terminal screen output to the file specified by
the filename argument. If you do not specify the LIST option, this output goes to the temporary file
"SRCHLIST". Specifying this option does not suppress output to your terminal; use the QUIET option for
that.
MATCHLOG <filename> [REPLACE]. Use this option to save the list of files containing matches to a
permanent file rather than the temporary file "SRCHMTCH". In this output file as in SRCHMTCH, the
file names are listed fully-qualified, one file per line.
PATTERNLOG <filename> [REPLACE]. Use this option to save the list of patterns specified to a
permanent file rather than the temporary file "SRCHPAT". The patterns contained in your permanent file
are listed one per line with each line starting in column one.
SEARCHLOG <filename> [REPLACE]. Use this option to save the list of files searched to a permanent
file rather than the temporary file "SRCHLOG". The file names are listed fully-qualified, one per line.
Other Options
The remaining options can be divided into two groups: those that change the search process and those that
change the format of the screen output. When you specify any of these options, you make a yes/no decision
about a particular HP Search feature.
COUNT/NOCOUNT. Use COUNT to have HP Search print only the names of the files containing
matches and how many matches were found in each. Otherwise, the default value NOCOUNT is assumed
and all lines containing a match are printed.
DOTS/NODOTS. Specify the DOTS option if you want HP Search to show its search progress by printing
a period as it searches each file. NODOTS is the default value.
INDEX/NOINDEX. Use the INDEX option to have HP Search update the block indexing file if necessary
Table 4: Temporary Files Automatically Created by HP Search
File Name File Contents
Option to Use to
Change File Name
SRCHLIST Contains all output from the search. LIST
SRCHPAT Contains a list of all the patterns used in the search. PATTERNLOG
SRCHLOG Contains a list of all files searched. SEARCHLOG
SRCHMTCH Contains a list of all files that had a match. MATCHLOG