40 Create and Update the Search Word File

This chapter contains these topics:

40.1 Understanding the Search Word File

With the word search feature, you can locate a name or address by performing one of the following:

  • Name search, to locate names

  • Query search, to locate telephone numbers, category codes, and so on

When you make additions, changes, or deletions to the address book, you need to create and then update the search word file so that your word search includes the most current information.

To create and update your search word files, the system uses the following fields:

  • Alpha Name (ABALPH, ABALPH1). Only double-byte environments use ABALPH1.

  • Search Type (ABAT1).

  • Category Codes 1 through 30 (ABACxx).

  • Tax ID Number (ABTAX, ABTX2).

  • Long Address Number (ABALKY).

  • Who's Who Mailing Name (WWMLN1, WWMLN1). Only double-byte environments use WWMLN1.

  • Phone numbers for Who's Who (WPAR1, WPPH1).

  • Address lines 1 through 4, City, County (ALADDx, ALCTY1, COUN). These fields are for both single- and double-byte characters. However, if you enter double-byte characters, you cannot search on them. Use the Additional Query Search Criteria available on the Address Book Revisions form (F18) to enter a single-byte version.

  • State Code (ALADDS).

  • Postal Code (ALADDZ).

  • Country Code (ALCTR).

  • Parent Number (MAPA8).

  • Generic Text. Text can be entered on the Text window. For double-byte environments, note that you cannot search on the double-byte text.

40.2 Creating the Search Word File

Navigation

From Address Book (G01), enter 27

From A/B Advanced and Technical Operations (G0131), choose Build Search Word File

You should create the search word file only once. You create this file using key words found in the address book and who's who.

To create the file, run the Build Search Word program. This program writes a record in the Word Search Master (F01800) and the Word Search Occurrence Master (F009101) files for every word found in certain Address Book and Who's Who fields.

When you create the search word file, the system reads every record in the following files:

  • Address Book Master (F0101)

  • Who's Who (F0111)

  • Contact Phone Numbers (F0115)

The program excludes stop words (common words), such as street, avenue, or building, that are found throughout the Address Book system.

40.2.1 Before You Begin

  • Determine whether the search word file has already been created. Use command WRKOBJ ABLOG. If object ABLOG of type *DTAQ appears in your production library, it has already been created.

40.3 Updating the Search Word File

Navigation

From Address Book (G01), enter 27

From A/B Advanced and Technical Operations (G0131), choose Refresh Search Word File

Use the Refresh Search Word program (P01820) to periodically update your word search file. This program updates the Word Search Master and Word Search Occurrence Master files.

All changes made to words in the Address Book Master file are logged in a data queue called "ABLOG." When you run the Refresh Search Word program, the system updates the word file based on the information in this data queue. The data queue is created by the CL program (J01BDWRD) that calls the Build Search Word program (P01BDWRD).

Updating the search word file runs more quickly than creating the file.

40.3.1 Before You Begin

  • Ensure that all users are signed off the system before you run this program