Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IGNORE or DO NOTHING option in EVALUATE

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

New User


Joined: 15 Sep 2005
Posts: 11
Location: Chennai

PostPosted: Thu Mar 08, 2007 5:46 pm    Post subject: IGNORE or DO NOTHING option in EVALUATE
Reply with quote

Hi All,
I just dont want to do anything in the OTHER clause used in the EVALUATE statement.

Eg,
EVALUATE TRUE
WHEN 'A'
PERFORM A-PARA
WHEN 'B'
PERFORM B-PARA
WHEN OTHER
DO NOTHING
END-EVALUATE.
How do i do this?

Thanks
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Mar 08, 2007 6:08 pm    Post subject:
Reply with quote

CONTINUE?

O.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Thu Mar 08, 2007 6:45 pm    Post subject:
Reply with quote

Programming tip: if you do not expect to ever reach the CONTINUE, code an error message there. Even if you "know" your current program will never reach it, further changes to code or data could change that.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 685
Location: Earth

PostPosted: Thu Mar 08, 2007 6:58 pm    Post subject:
Reply with quote

If you don't want to do anything in WHEN OTHER
simply dont code it.
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 BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts ICETOOL higher option Anshul Das DFSORT/ICETOOL 14 Thu Apr 14, 2016 8:00 am
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us