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

Do we also have EVALUATE FALSE?


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

New User


Joined: 04 Nov 2006
Posts: 5

PostPosted: Tue Nov 07, 2006 9:23 am
Reply with quote

if we have EVALUATE TRUE do we also have EVALUATE FALSE?...just asking im only new in cobol...

thanks a lot..

Title changed from "evaluate.." to "Do we also have EVALUATE FALSE?" : Priyesh.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Nov 07, 2006 9:35 am
Reply with quote

Quote:
do we also have EVALUATE FALSE?...

You do... indeed...
Check what manual says on that...
Back to top
View user's profile Send private message
karnataka

New User


Joined: 15 Sep 2006
Posts: 20
Location: bangalore

PostPosted: Wed Nov 08, 2006 12:06 pm
Reply with quote

hi dyobik


evaluate false is also syntactically correct.

01 A PIC 9 VALUE 2.

EVALUATE FALSE
WHEN A > 7 DISPLAY '1 WHEN SATISFIED'
WHEN A = 2 DISPLAY '2 WHEN SATISFIED'
WHEN OTHER DISPLAY 'NO CONDITION GOT SATISFIED'
END-EVALUATE.

in this case it will execute statement following 1st when .i.e, output is '1 WHEN SATISFIED'

thanks,
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 Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Evaluate statement, when-clause in co... COBOL Programming 10
No new posts Generate report with out using IF/EVA... COBOL Programming 25
This topic is locked: you cannot edit posts or make replies. Want to put in a loop in EVALUATE COBOL Programming 24
No new posts Evaluate statement - clarification COBOL Programming 2
Search our Forums:

Back to Top