Finding a string in a selection list
To find the next occurrence of a character string in the list being displayed, use the FIND primary command.
The cursor is placed in the prefix area of the line containing the found string and that line is made the top line.
To find the next occurrence of the same string, use the RFIND command, or enter the FIND command with no argument. A message is displayed if the string cannot be found.
Controlling the starting point, direction and extent of the search
You can qualify the search string with one of the following optional parameters before or after the search string: NEXT, PREV, FIRST, LAST. If you do not specify any parameter, or if you specify the NEXT parameter, the search begins at the cursor location (if the cursor is within the data portion of the display) or the beginning of the first record displayed, and searches ahead to find the next occurrence of the string.
If you specify the FIRST parameter, the search begins at the beginning of the list and searches ahead. If the LAST parameter is used, the search begins at the end of the list and searches backwards. If you specify the PREV parameter, the search begins either at the cursor location (if the cursor is within the data portion of the display) or the beginning of the first record displayed, and searches backwards to the find the string.
Related topics