30.8.2 Querying an Employee Record

Querying an employee record requires that the screen be in QUERY mode. If the screen is in ADD or UPDATE mode, the current information either has to be stored <F5> or cancelled (the GOLD <F1> key and the letter X). Press the QUERY <F2> button to enter the QUERY mode.

fjpman00000006.gif

The QUERY and FIND functions search for records in the file by starting at the beginning of the file and proceeding to the end of the file. When the FIND FIRST button <F2> is pressed the first record in the file that matches the search pattern is being queried. When the FIND NEXT button <F3> is pressed the next record in the file that matches the search pattern is displayed.

The QUERY function can be made to start its search with the last matching record by pressing the GOLD key <F1> before pressing the QUERY key <F2>, or by pressing the FIND LAST button. This means that the last record in the file that matches the search pattern is queried.

The direction of the FIND function's search can also be reversed if the GOLD key <F1> is pressed just before pressing the FIND key <F3>, or by pressing the FIND PREVIOUS button. As was explained above, each time the FIND NEXT button <F3> is pressed, the next record in the file that matches the search pattern is displayed. By pressing the GOLD key <F1> before pressing the FIND key <F3> or by pressing the FIND PREVIOUS button the direction of the search is reversed and the previous matching record is displayed. The GOLD <F1> FIND <F3> keys and the FIND <F3> key can be used to move back and forth in the file.

While the screen is in the query mode, enter the desired search pattern, and press the FIND <F3> button. When the employee record is found, it is displayed on the screen. To view the payroll information for the employee, press the NEXT <F7> button.