WHEN found outside of SELECT group.
20
Cause . . . . . : A WHEN operation was found without a preceding SELECT operation or a WHEN operation was specified after an OTHER operation. The specification is ignored.
Recovery . . . : Add a SELECT operation before the WHEN operation or remove the WHEN operation. Compile again.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.