# @ONCE

Description:

Executed once at the beginning of the output phase in *report, before the first record is processed with output processing. Also, will now execute in *clerk, prior to the first execution of @MENU. Note: doing a "lookup -" in @ONCE will cause you to jump to that record and skip the normal *clerk menu, just as a "-" lookup -" in @MENU will do.

Version Ref: 5.0

Note: Although @ONCE in *report is documented as being run prior to any output being done, it was run while sitting on the last record read during the sort/select process prior to release 5.0.14. Some people thought that this meant that it was sitting on a selected record.

@ONCE has now been fixed to be not sitting on any record. However, some people depend on their incorrect interpretation of the old behavior, so setting PFOLDONCE=ON will "revert back" to a modified version of the old behavior, where it will now be run while sitting on the last record _selected_ during the sort/select process.