Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
SEARCH ALL AOD-DATE-ENTRIES
MOVE 'N' TO AOD-FUTURE-DATE-FOUND
WHEN AOD-YYYYMMDD (AOD) > ORDER-DATE OF ORDER-RECORD
MOVE 'Y' TO AOD-FUTURE-DATE-FOUND
Question:Which one of the following is an error in the above code?
Index AOD was not set to 1 before the SEARCH ALL command.
The syntax of the last line is END SEARCH.
The WHEN clause must be followed by a PERFORM command.
The AT END clause must be followed by a PERFORM command.
SEARCH ALL tests only an equal condition.