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

Using 88 Level no with Evaluate or IF


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naren_mcs

New User


Joined: 20 Mar 2005
Posts: 4

PostPosted: Mon Mar 21, 2005 2:12 pm
Reply with quote

when we are using 88 Level no. we wil go for Evaluate most of the times. why we are not going for IF statement
Back to top
View user's profile Send private message
gorle_n4

New User


Joined: 11 Mar 2005
Posts: 8
Location: hyderabad

PostPosted: Mon Mar 21, 2005 3:30 pm
Reply with quote

hi!
it depends on our logical thinking and comfort. as u know that evaluate is more efficient than if else statement. if we use if else we will be confused thats why most of the developers prefer evaluate i think so.
Back to top
View user's profile Send private message
therasith

New User


Joined: 02 Jan 2004
Posts: 52
Location: chennai

PostPosted: Mon Mar 21, 2005 5:50 pm
Reply with quote

Hai,

If your are using Evaluate it is not a good programing style,to avoid evaluate is recommented.

Thanks

therasith
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Mon Mar 21, 2005 8:06 pm
Reply with quote

Quote:
when we are using 88 Level no. we wil go for Evaluate most of the times. why we are not going for IF statement


Hi
Most of the time if we have more then 3 or 4 use of If stmt make the program more complicated.That why we use Evaluate.

thanks
Back to top
View user's profile Send private message
LlewellynNaicker

New User


Joined: 22 Mar 2005
Posts: 5

PostPosted: Tue Mar 22, 2005 5:14 pm
Reply with quote

I think what learnmf is saying is correct it is better to use evaluate when do a condition statement for more than say 2 values if it is 2 values of less than use if. I think it makes the readibility and maintenence of the program much easier.

Regards
Lew
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Wed Mar 23, 2005 4:24 am
Reply with quote

therasith,
You said
Quote:

If your are using Evaluate it is not a good programing style,to avoid evaluate is recommented.


I would like to know which would be a better practice.

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

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Wed Mar 23, 2005 4:24 am
Reply with quote

somasundaran_k wrote:
therasith,
You said
Quote:

If your are using Evaluate it is not a good programing style,to avoid evaluate is recommented.


I would like to know which would be a better practice.

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

New User


Joined: 22 Mar 2005
Posts: 2

PostPosted: Wed Mar 23, 2005 12:11 pm
Reply with quote

Actually Evaluate is used to avoid nested if loops.
So its easy to understand the flow of program.
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 How to load to DB2 with column level ... DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts JPM Reports for each DB2 V12 Function... DB2 0
No new posts Program level statistics CICS 6
Search our Forums:

Back to Top