| Deutsch English Français Italiano |
|
<v9rkfe$1o3i$1@gal.iecc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: coroutines in COBOL, Article on new mainframe use Date: Sun, 18 Aug 2024 01:58:06 -0000 (UTC) Organization: Taughannock Networks Message-ID: <v9rkfe$1o3i$1@gal.iecc.com> References: <v9iqko$h7vd$1@dont-email.me> <v9nmsr$2haj$1@gal.iecc.com> <v9onrs$1jpc9$2@dont-email.me> <874j7ieu1i.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 18 Aug 2024 01:58:06 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="57458"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <v9iqko$h7vd$1@dont-email.me> <v9nmsr$2haj$1@gal.iecc.com> <v9onrs$1jpc9$2@dont-email.me> <874j7ieu1i.fsf@nosuchdomain.example.com> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine) Bytes: 2414 Lines: 28 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