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

diff b/w evaluates


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 43

PostPosted: Tue Aug 03, 2004 12:20 am
Reply with quote

hi

please answer me difference between EVALUATE and EVALUATE TRUE.

Difference between CALL BY and CALL BY TEXT

Shriya
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue Aug 03, 2004 8:20 pm
Reply with quote

hi Shriya,

Evaluate condition is used when you need to check the same variable with different values and evaluate true is used for checking different variables.

for eg: A can have values 1 or 2 or 3.

Evaluate A
when '1'
*******
when '2'
******
when '3'
*****

Even u can use evaluate true here like

Evaluate true
when a = '1'
****
when a = '2'
****

but generally used in cases like
evaluate true
when a='1'
********
when b='2'
**********

hope this is clear.

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

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Aug 04, 2004 10:54 pm
Reply with quote

hi Shriya,

What anuradha says is true, but it doesn't go far enough.

Eval tests the "value" of a variable.
Eval TRUE tests the TRUTH of a "conditional" stmt.

These stmts can take various forms and levels of complexity, E.g.:

WHEN (FLD-A IS NUMERIC AND FLD-B >= FLC-C) OR FLD-Z = '10'

HTH, Jack.
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 Sort on different fields, removing du... SYNCSORT 8
No new posts How syntax check at Bind time is diff... DB2 5
No new posts Compare PD Values with same storage &... JCL & VSAM 5
No new posts merge records from 2 ps files with di... DFSORT/ICETOOL 6
No new posts Need help on SORT to write each input... JCL & VSAM 4
Search our Forums:

Back to Top