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
 

 

Is nested EVALUATE possible

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
padma_prakasam

New User


Joined: 06 Oct 2005
Posts: 31

PostPosted: Wed Nov 14, 2007 9:33 pm    Post subject: Is nested EVALUATE possible
Reply with quote

Is nested EVALUATE possible?? I mean Evaluate inside an Evaluate?

Thanks,
Padma
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Nov 14, 2007 10:04 pm    Post subject:
Reply with quote

Padma,

Would you please tell me why u require evaluate inside evaluate ?
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Nov 14, 2007 10:18 pm    Post subject:
Reply with quote

Yes, it works fine.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 964
Location: Richmond, Virginia

PostPosted: Thu Nov 15, 2007 9:41 am    Post subject:
Reply with quote

I can easily think of logic requiring nested conditions of any type, EVALUATE included.

I can also think of how easy it is to test this, rather than just asking.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Fri Nov 16, 2007 3:47 am    Post subject:
Reply with quote

Always remember that 98% of the life of a program is maintenance. My rule of thumb was always never to go beyond 3 levels of "nested". There is no reason to. Over the years, I saw programs that included pages and pages of nested "ifs" - first of all, it is very difficult to debug - we called them "the flying wedge". Second of all, it is not efficient. Do an evaluate (if) and then a perform - go to the exit of a paragraph.
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 Any example of XML GENERATE nested st... marianambot COBOL Programming 6 Tue Sep 22, 2015 7:48 pm
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm
No new posts COND referback in nested PROCS? Claes Norreen JCL & VSAM 11 Thu May 15, 2014 6:34 pm
No new posts difference between subselect and nest... udaya_1986 DB2 1 Sun May 11, 2014 10:23 am
No new posts Resolving nested symbolic variables i... Terry Heinze CLIST & REXX 5 Wed Nov 13, 2013 8:24 am


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