Hi,
My Synon program doesnt allows me to add more than 10 OR Conditions in one CASE Statement.
C1 OR C2 OR C3 OR C4 OR C5 OR C6 OR C7 OR C8 OR C9 OR C10 OR C11 OR C12 OR C13.
when given like above, it only generates the source for first 10 conditions. Remaining are ignore and even no error messages while generating the source or compiling the program.
Is there any setup needs to be done or it was synon's functionality to provide only 10 conditions in one single case statement.
Software/Hardware used:
OS/400 - Synon Cool 2E
ASKED:
November 17, 2009 10:28 AM
UPDATED:
November 17, 2009 10:12 PM
Pure guess here since it’s been 15+ years since seeing Synon — I wouldn’t be surprised if 10 is the limit. Further, I’d also guess that Synon provides a different function to handle such a number of conditions. Look for alternatives. E.g., in SQL you might write WHERE code=’A’ or code=’B’ or code=’C’; but you can also write WHERE code in(‘A’,'B’,'C’).
Ugly possibility — Can you create a new condition like C99=C1 OR C2 OR C3? If so, you might be able to shrink your list by consolidating sets of conditions into one condition.
Tom