View previous topic :: View next topic |
Author |
Message |
adarsh444 Beginner
Joined: 19 Sep 2006 Posts: 13 Topics: 9
|
Posted: Sat Sep 23, 2006 7:09 pm Post subject: conditon handling in cobol |
|
|
if a> b and b > c
set switch-a to true
end-if
if b> c and c > d
set switch-b to true
end-if
..
..
..
...
...
..
..
if x > y and y > z
set switch-x to true
end-if
please suggest the effiecient way to code this...
evaluate helps but in my case all the switches needs to
be set to true in a single run.
Hope i'll get quick response. |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Mon Sep 25, 2006 4:25 pm Post subject: |
|
|
I think you should leave the code as it is. Clarity is usually more important than efficiency. _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
|
|