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

IGNORE or DO NOTHING option in EVALUATE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2358
Location: Israel

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

CONTINUE?

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

Senior Member


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

PostPosted: Thu Mar 08, 2007 6:45 pm
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: 691
Location: Earth

PostPosted: Thu Mar 08, 2007 6:58 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top