Page 2 of 2

Re: Use of nested If-Else..

PostPosted: Fri Mar 16, 2012 11:27 pm
by BillyBoyo
Now I'm confused. Are there two of you? Is bro the other one of you with whom you converse? Are you a Troll, or Trolls?

If you can find ELSE-IF or anything like it in the manual, feel free to use it. You can look at EVALUATE while you are reading the manual.

I think you've had all the answers you'll get from anyone else, just keep talking amongst yourself.

EDIT: Grammar smartened-up in deference to my learned colleague's able assistance.

Re: Use of nested If-Else..

PostPosted: Fri Mar 16, 2012 11:54 pm
by Robert Sample
Dilip_M_G:
So no reply for my query bro?
is not warranted -- being told to go read the manuals IS an answer to your query. Whether or not you LIKE the answer, well, that's a different question. This is a HELP forum, not a READ-THE-MANUAL-FOR-YOU forum. If you are not willing to read the manual when told to do so, then don't ask questions here.

Re: Use of nested If-Else..

PostPosted: Fri Mar 16, 2012 11:55 pm
by enrico-sorichetti
I'm coding some urgent requirement so had requested to reply soon

why not lurk into some colleague' s code !

Re: Use of nested If-Else..

PostPosted: Fri Mar 16, 2012 11:56 pm
by enrico-sorichetti
the problem as I see it, is to find out which of the two bro' s is the smart one :geek:

Re: Use of nested If-Else..

PostPosted: Sat Mar 17, 2012 1:36 pm
by Monitor
Comment on Nested If.
- There is no Else-If, just Else If
You should alwas consider using Evaluate - End-Evaluate, when there is a need for more than 2 levels of Ifs.
"Easy to use - easy to modify"

Your "psudo-code" could look like this:
Evaluate True
   When (ABCD of file 1 = ABCD of file 2)
         write statement1
   When (ABCDE of file 1 < ABCDE of file 2)
         write statement2
   When Other
         write statement3
End-Evaluate

Re: Use of nested If-Else..

PostPosted: Sun Mar 18, 2012 9:48 am
by dick scherrer
Hello,

So no reply for my query bro?
Have you looked n the COBOL Language Reference? Is there smething that is not yet clear? If you found somethng n the manjual that is confusing, post that content here and someone here will be able to clarify.

Hint - If you have something that is critical/urgent, a forum is not the best place to look for a coding solution. Your time would be better spent talking with your manager or another senior on your project and explain where you are stuck and if there is an existing module somewhere on the applicatoin that does something similar.