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
 
Do we also have EVALUATE FALSE?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Do we also have EVALUATE FALSE?
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: 1452
Location: Chicago, IL

PostPosted: Tue Nov 07, 2006 9:35 am    Post subject: Re: evaluate..
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    Post subject:
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    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 Evaluate statement, when-clause in co... UmeySan COBOL Programming 10 Mon Jul 16, 2012 6:49 pm
No new posts Generate report with out using IF/EVA... bbharathiraj COBOL Programming 25 Tue May 22, 2012 10:19 am
This topic is locked: you cannot edit posts or make replies. Want to put in a loop in EVALUATE maxsubrat COBOL Programming 24 Fri Apr 06, 2012 3:35 pm
No new posts Evaluate statement - clarification Vijay Subramaniyan COBOL Programming 2 Fri Feb 03, 2012 1:53 pm
No new posts Evaluate true also true Bill Woodger COBOL Programming 6 Thu Aug 11, 2011 7:43 pm

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