gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Sections in PROCEDURE DIVISION


From: Gary Cutler
Subject: Re: [open-cobol-list] Sections in PROCEDURE DIVISION
Date: Thu, 14 Mar 2013 13:15:22 -0400

The current iteration of the next generation of the OC Manual, intended for V2.0 of OC, does - in fact - discuss the pros and cons using SECTIONs in the PROCEDURE DIVISION.  Unfortunately, I cannot publicly share that manual at this time because V2.0 has not been "released" yet.

BTW - OC, at least, is not affected by the "PERFORM section" vs "PERFORM para1 THRU para2" issue - the generated code is identical.

My purely personal preference is to use "PERFORM section" when writing new programs, although I have seen shops that standardized on one or the other.  Since much of my work today involves making changes to existing programs rather than coding "from scratch", I simply adopt whatever approach has been used within the program.

__________________________
Sent from my iPad

Gary L. Cutler
(518) 598-6035 (Cell)



On Mar 14, 2013, at 10:44 AM, vince <address@hidden> wrote:

On Thursday 14 Mar 2013 09:14:28 john Culleton wrote:
The OC COBOL Manual written by Gary Cutler is so good that I hesitate
to mention one omission. Most of us don't use sections in the PROCEDURE
DIVISION any more, if we ever did. But there are still older programs
around that used that construct. Gary mentions them only in connection
with the SORT verb. The construct deserves a separate mention.

Well here is one programmer that does use Sections within Cobol programs.
Performing Sections is more efficient then paragraphs with 'thru' in most
implementations.



------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]