Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Using 88 Level no with Evaluate or IF

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
naren_mcs

New User


Joined: 20 Mar 2005
Posts: 4

PostPosted: Mon Mar 21, 2005 2:12 pm    Post subject: Using 88 Level no with Evaluate or IF
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
References
gorle_n4

New User


Joined: 11 Mar 2005
Posts: 8
Location: hyderabad

PostPosted: Mon Mar 21, 2005 3:30 pm    Post subject: why we are not going for IF statement
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

Active User


Joined: 02 Jan 2004
Posts: 88
Location: chennai

PostPosted: Mon Mar 21, 2005 5:50 pm    Post subject: Hai
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: 124

PostPosted: Mon Mar 21, 2005 8:06 pm    Post subject:
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    Post subject:
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: 141

PostPosted: Wed Mar 23, 2005 4:24 am    Post subject:
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: 141

PostPosted: Wed Mar 23, 2005 4:24 am    Post subject:
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    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1