next previous up contents index
Next: X Previous: WORKFILE Up: The Commands in Detail


WRAP   [?|ON|OFF]
WR

The command WRAP influences the behaviour of the command LOCATE and its Related commands (i.e. RLOCATE etc.).

If WRAP OFF is valid, the search for character strings ends at the last or the first record of the workfile when the search string is not found.

On the other hand, if WRAP ON is valid, which is the default setting, either the search continues at the beginning of the file when the last record is reached or the search is continued at the end of the workfile when the first record is reached in reverse search.

With `WRAP ?' you can ask for the current setting of the WRAP switch.


next previous up contents index
Next: X Previous: WORKFILE Up: The Commands in Detail