Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CASE Statement

Former Member
0 Likes
1,907

How many WHEN are possible in one CASE from performance point of view?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,877

There is of course a limit !! Nothing in the world is without limit !!

However, you should not run into that limit, so even hundrets of cases should work.

12 REPLIES 12
Read only

Former Member
0 Likes
1,877

HI,

NO limit.. you can use any number.

regards,

nazeer

Read only

Former Member
0 Likes
1,877

Hi,

You can use as many as WHEN in a single CASE Statment

regards

Sudheer

Read only

Former Member
0 Likes
1,877

Thanks for quick response; Eventhough I havenot face any problem for this, I just want to know the limitation. Still, I am not satisfied about the answer - NO LIMIT. As I think, there should be some limit.

Read only

0 Likes
1,877

Hi,

There is no limit beacuse at once only ONE WHEN will be executed assuming that all your WHEN's are distinct. So you can have as many WHEN's as you want.

Regards,

Sesh

Read only

Former Member
0 Likes
1,878

There is of course a limit !! Nothing in the world is without limit !!

However, you should not run into that limit, so even hundrets of cases should work.

Read only

Former Member
0 Likes
1,877

Hi

to avoid the nested loop case and endcase is there

so there is no limit to whens

you can any number of when

when ever the that values comes then directly control goes to that place so no need to think about performance in this case

reward if usefull

Read only

Former Member
0 Likes
1,877

Hi Friendz,

Thanks for responding my question. I got the answer and so I am closing this.

Read only

0 Likes
1,877

so what on earth is the answer? 42?

Read only

0 Likes
1,877

This message was moderated.

Read only

rainer_hbenthal
Active Contributor
0 Likes
1,877

The limit is the main memory when editing the report.

Read only

0 Likes
1,877

Please refrain from bumping up my old "jokes"  

Read only

0 Likes
1,877

HG2G rules