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
 

 

diff b/w evaluates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: diff b/w evaluates
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    Post subject:
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    Post subject:
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    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 Compare PD Values with same storage &... Shrinika Rajendran JCL & VSAM 5 Wed Nov 05, 2014 3:17 pm
No new posts merge records from 2 ps files with di... kishpra DFSORT/ICETOOL 6 Wed Mar 19, 2014 1:00 pm
No new posts Need help on SORT to write each input... rahul sijoriya JCL & VSAM 4 Mon Dec 02, 2013 9:09 pm
No new posts DB2 delete row from one table with a ... Shereen Samuel DB2 1 Thu Apr 11, 2013 12:08 pm
This topic is locked: you cannot edit posts or make replies. What is exact diff and adv btw Comp p... MOHAN KUMAR DURAIRAJAN COBOL Programming 1 Thu Mar 14, 2013 4:39 pm


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