• Re: coroutines in COBOL, Article on new mainframe use

    From John Levine@21:1/5 to All on Sun Aug 18 01:58:06 2024
    According to Keith Thompson <Keith.S.Thompson+u@gmail.com>:
    Really?? You’re not talking about that “ALTER ... TO PROCEED TO ...” crap,
    are you?

    A Google search for "cobol coroutines" would have saved you some time
    and embarrassment.

    That finds some cool hacks but what I had in mind was the COBOL report writer.

    You describe the layout of the report with page headings and control breaks and group
    headings and totals. Then in your main program every time you do a GENERATE statement it
    switches to the report writer, does whatever headers or footers or totals or whatever,
    then returns to the main program keeping the state of the report until the next GENERATE.
    INITIATE and TERMINATE start end end the report.

    The reort writer got a bad rap from people who didn't understand it but if you want
    to produce the kinds of reports it can do, it's quite nice.

    I see that recent versions of IBM COBOL no longer include it, but they offer a preprocessor that turns your report code into ordinary COBOL so other than changes to the
    compiler control cards, it works the same.

    See https://publibfp.dhe.ibm.com/epubs/pdf/c2643014.pdf


    --
    Regards,
    John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
    Please consider the environment before reading this e-mail. https://jl.ly

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to John Levine on Sun Aug 18 02:02:44 2024
    On Sun, 18 Aug 2024 01:58:06 -0000 (UTC), John Levine wrote:

    I see that recent versions of IBM COBOL no longer include it ...

    Still avoiding the point I made.

    Even PHP, which I also sneer at, does a slicker job of interfacing to SQL databases than COBOL has ever managed.

    And considering that “PHP” and “slick” are two words that do not belong in
    the same sentence ... that’s saying something.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)