View previous topic :: View next topic
|
Author |
Message |
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
Code: |
SEARCH ALL AOD-DATE-ENTRIES
AT END
MOVE 'N' TO AOD-FUTURE-DATE-FOUND
WHEN AOD-YYYYMMDD (AOD) > ORDER-DATE OF ORDER-RECORD
MOVE 'Y' TO AOD-FUTURE-DATE-FOUND
END-SEARCH. |
Question:Which one of the following is an error in the above code?
Choice 1
Index AOD was not set to 1 before the SEARCH ALL command.
Choice 2
The syntax of the last line is END SEARCH.
Choice 3
The WHEN clause must be followed by a PERFORM command.
Choice 4
The AT END clause must be followed by a PERFORM command.
Choice 5
SEARCH ALL tests only an equal condition. |
|
Back to top |
|
|
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
OK. I've found the answer. SEARCH ALL test must be an equal-to condition. So choice 5 is correct. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Wat to go Sungang. Thanx for letting us know how your problem turned out. |
|
Back to top |
|
|
sureshchoudey
New User
Joined: 16 Sep 2005 Posts: 12
|
|
|
|
. SEARCH ALL test must be an equal-to condition. |
|
Back to top |
|
|
sureshchoudey
New User
Joined: 16 Sep 2005 Posts: 12
|
|
|
|
. SEARCH ALL test must be an equal-to condition. |
|
Back to top |
|
|
|