Synon – Maximum OR conditions in CASE Statement

40 pts.
Tags:
OS/400
Synon
Synon/Cool 2E
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • SaurabhChakraborty

    Only the length is taken into account so if you want a bigger condition then used multiple conditions to derive a new condition. for instance.

    c1 or c2 or c3 or c4 or c5 in one condition and the output can be then used for other condition like

    c1 and c2 and c3 or c4 or c5 (derived) earlier.

    So, you can club up multiple condition into one but SYNON only allows till the length of the input condition field.

    355 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: