Re: Problem With Cobol Report Writer



.. On 16.04.05
wrote riplin@xxxxxxxxxxxx (Richard)
on /COMP/LANG/COBOL
in 1113676699.610450.255030@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
about Re: Problem With Cobol Report Writer


r> It may well be that the PROCEDURE DIVISION should be divided up into
r> SECTIONs. In fact I used to do that for the purpose of using
r> 'priorities' in order to overlay the program into the memory space
r> available to me.

This is ancient ... but has nothing to do with the SECTION as such.
I have never played around with segmentation.

r>
r> But it doesn't follow, as you seem to claim, that these SECTIONs
r> should therefore be what the PERFORMs target.

This is a questin of individual discipline or shop standards. It
just makes sense, and it made much more sense before COBOL-85 was
implemented which finally made proper programming possible in COBOL.

It is a simple rule: PERFORM only SECTIONs, never a paragraph, and
GOTO only to paragraphs, never SECTIONs.

Today, where a GOTO is superflouus even in COBOL, I see the only
sense in paragraphs to serve as a visual documentation tool.

r> After all one doesn't INITIALISE WORKING-STORAGE as a SECTION.

I don't understand what that is supposed to mean.


Yours,
Lüko Willms http://www.willms-edv.de
/--------- L.WILLMS@xxxxxxxxxxx -- Alle Rechte vorbehalten --

Der Mann hatte soviel Verstand, daß er zu fast nichts mehr in der Welt zu gebrauchen war. -G.C.Lichtenberg
.



Relevant Pages

  • Re: R: GOBACK (was: Perform Thru/Go to vs. Perform - Compile Speed
    ... you haven't demonstrated it scaling past a handful of 'paragraphs' ... Not realizing Cobol can be anything ... It's the Windows and Unix way to make a program responsive. ... A large ammonium nitrate bomb 40 feet away ...
    (comp.lang.cobol)
  • Re: Problem With Cobol Report Writer
    ... and written COBOL here and there... ... I don't think Richard suggested it was other than a style issue. ... personal preference is for paragraphs. ... though it may not be my personal preference). ...
    (comp.lang.cobol)
  • Re: Problem With Cobol Report Writer
    ... (and I had minimal exposure to Asia, Canada, and other "COBOL worlds") ... entirely possible to code "maintainable" COBOL code with ... PARAGRAPHS - although they did provide for this ... With the removal of requiring SECTIONS for SORT/MERGE Input/Output procedures, ...
    (comp.lang.cobol)
  • Re: Discussions of COBOL philospphy
    ... Of paragraphs that contain STOP ... One type of shop whose style could be changed for the better is the ... Cobol is not their first language. ...
    (comp.lang.cobol)
  • Re: Discussions of COBOL philospphy
    ... Of paragraphs that contain STOP RUN ... One type of shop whose style could be changed for the better is the department of a large ... Cobol is not their first language. ...
    (comp.lang.cobol)