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
 

 

Different type of evalute with clear practicle

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
pankajupadhyay
Warnings : 1

New User


Joined: 04 May 2007
Posts: 13
Location: pune

PostPosted: Sun May 06, 2007 9:04 pm    Post subject: Different type of evalute with clear practicle
Reply with quote

hi everyone,
could you plz tell me diffrence b/w diffrent type of evalute with clear practicle example .
thanks in advance
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun May 06, 2007 10:48 pm    Post subject:
Reply with quote

Could you please give me your defination of "evalute"?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun May 06, 2007 11:05 pm    Post subject:
Reply with quote

Hello,

EVALUATE is a way to code a series of nested IFs.

If you have some code that you would like clarification about, please post the code and we will explain.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 757
Location: Germany

PostPosted: Mon May 07, 2007 1:17 pm    Post subject:
Reply with quote

Hi !

For Example:

Evaluate Field-01
when '01' perform proc-01
when '02' perform proc-02
when other performe something-else-proc
End-Evaluate

Evaluate True
when process-01-yes perform proc-01
when process-02-yes perform proc-02
when other continue
End-Evalute

Evaluate true also true
when pr-01-yes also pr-02-yes perform P01
when pr-02-yes also any perform X99
when other continue
End-Evaluate

Evaluate Field
when '01' move...
move...
when other compute....
End-Evaluate

Regards, UmeySan
Back to top
View user's profile Send private message
pankajupadhyay
Warnings : 1

New User


Joined: 04 May 2007
Posts: 13
Location: pune

PostPosted: Mon May 07, 2007 8:36 pm    Post subject: Re: Different type of evalute with clear practicle
Reply with quote

hello Umey,
thanks for example given by u icon_smile.gif
Evaluate Field-01
when '01' perform proc-01
when '02' perform proc-02
when other performe something-else-proc
End-Evaluate

Evaluate True
when process-01-yes perform proc-01
when process-02-yes perform proc-02
when other continue
End-Evalute


but i faced a question in interview that..... tell advantage of one EVALUATE over another.
when i will use Evaluate variable, and when i will use Evaluate True ?

[/b]
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon May 07, 2007 9:59 pm    Post subject: Re: Different type of evalute with clear practicle
Reply with quote

pankajupadhyay wrote:
but i faced a question in interview that..... tell advantage of one EVALUATE over another.
when i will use Evaluate variable, and when i will use Evaluate True ?
Use one over the other when logic calls for it.
The one deals with one result from multiple situations where the other deals with multiple results from one situation.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 08, 2007 12:34 am    Post subject:
Reply with quote

Hello,

The biggest "advantage" i'm aware of is that it may make code more readable.

I've not yet seen anything that would not work unless EVALUATE was used in the code. Said differently, EVALUATE was not always part of the language, but the same codtitions were tested. . .
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Ccompar BLOB (images of type jpg) on ... nihad DB2 0 Sun Feb 05, 2017 3:13 pm
No new posts Query using SUBSTRING on a column of ... sasanka DB2 5 Mon Jul 04, 2016 1:01 pm


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