The text of this article is not in this database — only its details are. Read it on the old site: Progressive Modernization Using Managed COBOL
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Progressive Modernization Using Managed COBOL
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
alex turnerPosted Oct 6, 2010, 9:19 AM
The biggest difference is that method allocate local storage on the stack and are fully recursive. However, in the static form they are represented here - they are a first step towards object structured coding.
Jeff SpaldingPosted Oct 5, 2010, 11:04 PM
Thanks for the straight forward example of setting up a method in COBOL. Can you also explain how this is different or preferable to placing the same code into a nested program. It seems that would still support the concept of local variables without needing to learn "new" COBOL concepts such as methods. Some explanation of examples of the advantages of methods over nested programs would be useful for me.