Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Evaluate statement - clarification

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Vijay Subramaniyan

New User


Joined: 06 Jul 2011
Posts: 15
Location: india

PostPosted: Fri Feb 03, 2012 1:53 pm    Post subject: Evaluate statement - clarification
Reply with quote

Hi .

Can anyone tell me what will happen to this.

Evaluate TRUE
Condition 1 : Display 'hI'
Condition 2 : Display 'hello'
Other : Display 'Bye'
End-evaluate

What will happen if both the conditions are true. In 'C' the control will be going to the first met condition. If we do not code break statement the successive statements will be executed. Is it like that in Cobol too?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Feb 03, 2012 2:04 pm    Post subject: Reply to: Evaluate statement - clarification
Reply with quote

The Fine Manual. Experimentation. Colleagues. Google.

Any of the above could allow you to answer your own question.

When you know one language and are using another think in terms of general logic (good to express in pseudo-code) rather than "if only I could do it using a construct in this other language".
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Fri Feb 03, 2012 2:52 pm    Post subject: Reply to: Evaluate statement - clarification
Reply with quote

As pointed by Bill, manuals should help you. So heres the link, in case you dont want to search for it.

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=%2Fcom.ibm.entcobol.doc_4.1%2FPGandLR%2Ftasks%2Ftpaid02.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compute statement with Cobol Z/os 5.2 Chetan Kumar COBOL Programming 2 Fri May 11, 2018 8:02 pm
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us