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
 
Evaluate with IFcondition

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

New User


Joined: 23 Mar 2005
Posts: 25

PostPosted: Wed Apr 20, 2005 2:58 pm    Post subject: Evaluate with IFcondition
Reply with quote

can we use IF Statement with in Evaluate.

thank,s
keerthi.
Back to top
View user's profile Send private message

somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Wed Apr 20, 2005 8:09 pm    Post subject:
Reply with quote

Keerthi,
You mean something like
Code:

EVALUATE TRUE
  WHEN X = Y
    IF A = B
      do some thing
    END-IF
  WHEN ---
 ----
---
END-EVALUATE.


Of course you can do it.

hth
-Som
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed Apr 20, 2005 8:58 pm    Post subject:
Reply with quote

yes keerthi
you can do it any way..i.e one somasundaran_k has explained as well as inside if you can check for evaluate. both wau it is possible.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Apr 21, 2005 5:55 am    Post subject:
Reply with quote

I know this is really just a matter of taste, but I like to use the opposite; it seems to "read" better:
Code:

IF FLD-A = 6
    EVALUATE FLD-B
    WHEN 12 .....
         .....
    END-EVALUATE
END-IF
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