ACC-FIND Command

The ACC-FIND command creates and saves a select-list of file items containing a specified character string. ACC-FIND functions in the same way as the FIND command, but on an account-wide basis: that is, ACC-FIND searches for the specified character string in every file dictionary and data file of the account you are logged on to.

Format

ACC-FIND "string" [(I)]

Parameter(s)

string

Sequence of characters for which to search. Enclose string in double quotes. String can be present in any attribute of a file item.

I

Lists the item-IDs of the selected items on the terminal.

Description

ACC-FIND creates a saved select-list containing the item-IDs of items that contain the specified character string. A list of each dictionary and data file is displayed on the screen as it is searched.

The select-list is saved in the POINTER-FILE. If the string is found in a data file, the saved list is given the item name in this format:

port# * filename

If the string is found in a file dictionary, the saved list item name has the format:

port# * DICT * filename

Finding a String

This example searches all files in the current account for the string "PRICE" and lists the items in which it is found:

>ACC-FIND "PRICE" (I)

A save-list of items found in each file will be stored in the POINTER-FILE under the name Port*File or Port*DICT*File

FILE: DICT BOOK-CATALOG

   3

   PRICE

FILE: BOOK-CATALOG

FILE: DICT BP

FILE: BP

FILE: DICT CUSTOMERS

     AC

FILE: CUSTOMERS

FILE: DICT NEWORDERS

    AC

    AMOUNT

   TEST.AMOUNT

   PRICE

FILE: NEWORDERS

FILE: DICT ORDERS

    AMOUNT

   AC

   TEST.AMOUNT

    PRICE

>

The string "PRICE" was found in the dictionaries of four files. A separate select-list of item-IDs was created for each file. If the port number is 2, the item-IDs of the select-lists saved in the POINTER-FILE are as follows:

2*DICT*BOOK-CATALOG

2*DICT*CUSTOMERS

2*DICT*NEWORDERS

2*DICT*ORDERS