IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Evaluate statement - clarification


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vijay Subramaniyan

New User


Joined: 06 Jul 2011
Posts: 14
Location: india

PostPosted: Fri Feb 03, 2012 1:53 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Feb 03, 2012 2:04 pm
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
Reply with quote

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

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
Search our Forums:

Back to Top