Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 -> COBOL Programming
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    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

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

New User


Joined: 02 Jan 2004
Posts: 52
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: 123

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: 134

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: 134

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
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 Syncsort TPF Level Majid Hussain SYNCSORT 2 Wed Apr 13, 2016 2:22 am
No new posts Need a logic to validate the data in ... sandeep kumar302 COBOL Programming 17 Mon Feb 01, 2016 3:30 pm
No new posts DB2 10.1 Share level locking and Sele... Mary Lewis DB2 1 Wed Apr 15, 2015 9:51 pm
No new posts CICS SE Level Openings in Accenture enikhilk Mainframe Jobs 0 Mon Sep 01, 2014 6:39 pm
No new posts 88 level variable logic not working sandeep kumar302 COBOL Programming 19 Thu Jul 31, 2014 10:59 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us