3.3

Table Of Contents
Restoring Data to the iNEWS Database
77
Searching a Tape by Word(s)
To search a tape by word(s), follow the searchtape command with the word
for
and the
word(s) for which you want to search.
Use this form of the command:
searchtape for <words>
If you include more than one search word, the system searches for stories that contain any
words for which you are searching. You can search for up to 20 words at a time with this
command.
For instance, to search for stories that contain either helicopter or president, type:
searchtape for helicopter president
A message similar to the following appears:
8 stories restored to SYSTEM.SEARCHTAPE
This command finds stories with the word president and it also finds stories with the word
helicopter. It would not limit the results to stories that contained both president and
helicopter.
n
It is not possible to construct Boolean (and) searches using the searchtape command.
Always include the word “for” and one or more words for which you want to search when
you use the searchtape command. Even if you use a date or a date range as part of the search
criteria, as explained in the next section, you must include a word or words for which you
want the system to search.
Use search criteria that is as specific as possible:
Always use a narrow range of dates
Use a small number of search words
Use words likely to appear only in stories for which you are searching
Searching a Tape by Word and Date Range
To restrict a search to stories backed up between certain dates:
1. Include the range of dates to which you want to restrict the search in the
searchtape
command.
The command format for this kind of search is:
searchtape from <date> to <date> for <words>