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

Different type of evalute with clear practicle


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

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

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

Moderator Emeritus


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

PostPosted: Sun May 06, 2007 11:05 pm
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: 771
Location: Germany

PostPosted: Mon May 07, 2007 1:17 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Mon May 07, 2007 9:59 pm
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

Moderator Emeritus


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

PostPosted: Tue May 08, 2007 12:34 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts SMF record type 30 JCL & VSAM 8
No new posts reset/clear ALL application profile v... TSO/ISPF 3
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts Changing Data Type SYNCSORT 4
No new posts REXX for Reading SMF type 70-1 Testing & Performance 6
Search our Forums:

Back to Top