Sujet : Re: COBOL, Article on new mainframe use
De : johnl (at) *nospam* taugh.com (John Levine)
Groupes : comp.archDate : 23. Aug 2024, 18:43:13
Autres entêtes
Organisation : Taughannock Networks
Message-ID : <vaahnh$22g6$1@gal.iecc.com>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
According to Michael S <
already5chosen@yahoo.com>:
I once ported a COBOL-specific algorithm to Pascal, which meant
that I had to reimplement code for all the 80-col punch card
formatted IO as well as sorting according to quite special rules.
>
The original was 25 pages, my replacement ~5, at least half of
which was the COBOL specific function replacements, so the
mainline code became an order of magnitude smaller.
My assumption was that majority of size reduction happened due to
identifying repeated patterns and implementing them as subroutines.
Which could be done in any reasonable language. I know nothing about
COBOL, but hope that it supports subroutines.
COBOL is by design, really really verbose, e.g. what we would write as
tg = kb + ro
is
ADD KICK-BACK TO RAKE-OFF GIVING TOTAL-GRAFT.
It has only weak subroutines. You can say
PERFORM PARA1 THRU PARA2 VARYING THING-INDEX FROM THING-BASE TO THING-LIMIT.
it will set THING-BASE, jump to PARA1 and loop and return at the end
of PARA2 more or less like a FOR loop, but handling the parameters
beyond that is up to you. At least in IBM COBOL there is a way to
break up a program into subroutines you can call with parameters
but there is so much mandatory glop for each routine (the whole
ENVIRONMENT DIVISION, DATA DIVISION thing) that you're not going
to end up with a short program.
Also, as someone else keeps pointing out, any sort of string
processing beyond putting stuff in fixed fields is very painful.
I simply don't see how mere syntax difference between COBOL and Pascal,
You should look at some COBOL programs. It's a whole different world.
-- 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
Date | Sujet | # | | Auteur |
14 Aug 24 | Article on new mainframe use | 132 | | Stephen Fuld |
14 Aug 24 | Re: Article on new mainframe use | 124 | | MitchAlsup1 |
15 Aug 24 | Re: Article on new mainframe use | 123 | | George Neuner |
15 Aug 24 | Re: Article on new mainframe use | 1 | | Stephen Fuld |
15 Aug 24 | Re: Article on new mainframe use | 121 | | MitchAlsup1 |
15 Aug 24 | Re: Article on new mainframe use | 1 | | Stephen Fuld |
15 Aug 24 | Re: Article on new mainframe use | 118 | | Niklas Holsti |
16 Aug 24 | Re: Article on new mainframe use | 117 | | Lawrence D'Oliveiro |
16 Aug 24 | Re: COBOL, Article on new mainframe use | 30 | | John Levine |
17 Aug 24 | Re: COBOL, Article on new mainframe use | 5 | | Lawrence D'Oliveiro |
17 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | John Levine |
17 Aug 24 | Re: COBOL, Article on new mainframe use | 3 | | Keith Thompson |
18 Aug 24 | Re: coroutines in COBOL, Article on new mainframe use | 2 | | John Levine |
18 Aug 24 | Re: coroutines in COBOL, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
18 Aug 24 | Re: COBOL, Article on new mainframe use | 24 | | OrangeFish |
18 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | John Levine |
18 Aug 24 | Re: COBOL, Article on new mainframe use | 22 | | John Dallman |
18 Aug 24 | Re: COBOL, Article on new mainframe use | 14 | | MitchAlsup1 |
19 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | John Dallman |
23 Aug 24 | Re: COBOL, Article on new mainframe use | 12 | | Terje Mathisen |
23 Aug 24 | Re: COBOL, Article on new mainframe use | 11 | | Michael S |
23 Aug 24 | Re: COBOL, Article on new mainframe use | 10 | | Terje Mathisen |
23 Aug 24 | Re: COBOL, Article on new mainframe use | 9 | | Michael S |
23 Aug 24 | Re: COBOL, Article on new mainframe use | 6 | | John Levine |
24 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
27 Aug 24 | Re: COBOL, Article on new mainframe use | 4 | | Keith Thompson |
28 Aug 24 | Re: COBOL, Article on new mainframe use | 3 | | MitchAlsup1 |
28 Aug 24 | Re: COBOL, Article on new mainframe use | 2 | | Keith Thompson |
2 Sep 24 | Re: COBOL, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
24 Aug 24 | Re: COBOL, Article on new mainframe use | 2 | | John Dallman |
28 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
19 Aug 24 | Re: COBOL, Article on new mainframe use | 7 | | Lawrence D'Oliveiro |
19 Aug 24 | Re: COBOL, Article on new mainframe use | 6 | | John Levine |
21 Aug 24 | Re: COBOL, Article on new mainframe use | 5 | | Lawrence D'Oliveiro |
21 Aug 24 | Re: COBOL, Article on new mainframe use | 4 | | Keith Thompson |
21 Aug 24 | Re: COBOL, Article on new mainframe use | 3 | | MitchAlsup1 |
21 Aug 24 | Re: COBOL, Article on new mainframe use | 1 | | Keith Thompson |
2 Sep 24 | Re: COBOL, Article on new mainframe use | 1 | | Tim Rentsch |
16 Aug 24 | Re: Article on new mainframe use | 82 | | George Neuner |
22 Aug 24 | Re: Article on new mainframe use | 81 | | BGB |
23 Aug 24 | Re: Article on new mainframe use | 1 | | Stephen Fuld |
23 Aug 24 | Re: Article on new mainframe use | 79 | | Lawrence D'Oliveiro |
23 Aug 24 | Re: Article on new mainframe use | 77 | | BGB |
23 Aug 24 | Re: libraries, was Article on new mainframe use | 1 | | John Levine |
24 Aug 24 | Re: Article on new mainframe use | 75 | | Lawrence D'Oliveiro |
24 Aug 24 | Re: Article on new mainframe use | 1 | | BGB |
24 Aug 24 | Re: Article on new mainframe use | 73 | | John Levine |
28 Aug 24 | Re: Article on new mainframe use | 70 | | Lawrence D'Oliveiro |
29 Aug 24 | Re: Article on new mainframe use | 69 | | John Levine |
30 Aug 24 | Re: Article on new mainframe use | 68 | | Lawrence D'Oliveiro |
30 Aug 24 | Re: Article on new mainframe use | 67 | | Michael S |
30 Aug 24 | Re: Article on new mainframe use | 12 | | John Levine |
30 Aug 24 | Re: tiny COBOL, Article on new mainframe use | 11 | | John Levine |
31 Aug 24 | Re: tiny COBOL, Article on new mainframe use | 8 | | Stefan Monnier |
31 Aug 24 | Re: tiny COBOL, Article on new mainframe use | 5 | | Thomas Koenig |
2 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 4 | | Terje Mathisen |
2 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 2 | | Thomas Koenig |
2 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 1 | | Anssi Saari |
2 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 1 | | Anton Ertl |
31 Aug 24 | Re: tiny COBOL, Article on new mainframe use | 1 | | Anton Ertl |
31 Aug 24 | Re: tiny COBOL, Article on new mainframe use | 1 | | George Neuner |
2 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 2 | | Lawrence D'Oliveiro |
4 Sep 24 | Re: tiny COBOL, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
1 Sep 24 | Re: Article on new mainframe use | 6 | | Lawrence D'Oliveiro |
1 Sep 24 | Re: COBOL history, Article on new mainframe use | 3 | | John Levine |
1 Sep 24 | Re: COBOL history, Article on new mainframe use | 1 | | Lynn Wheeler |
2 Sep 24 | Re: COBOL history, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
1 Sep 24 | Re: Article on new mainframe use | 2 | | John Dallman |
2 Sep 24 | Re: Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
1 Sep 24 | Re: Article on new mainframe use | 48 | | Lawrence D'Oliveiro |
1 Sep 24 | Re: Article on new mainframe use | 47 | | MitchAlsup1 |
2 Sep 24 | Re: Article on new mainframe use | 46 | | Lawrence D'Oliveiro |
2 Sep 24 | Re: Address bits again, Article on new mainframe use | 45 | | John Levine |
2 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Thomas Koenig |
2 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Stephen Fuld |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 42 | | Lawrence D'Oliveiro |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 2 | | Terje Mathisen |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 39 | | John Levine |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 37 | | John Dallman |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | MitchAlsup1 |
5 Sep 24 | transparent huge pages (was: Address bits again) | 4 | | Anton Ertl |
5 Sep 24 | Re: transparent huge pages | 1 | | MitchAlsup1 |
5 Sep 24 | Re: transparent huge pages | 1 | | Chris M. Thomasson |
8 Sep 24 | Re: transparent huge pages (was: Address bits again) | 1 | | Lawrence D'Oliveiro |
5 Sep 24 | Re: Address bits again, Article on new mainframe use | 31 | | John Levine |
8 Sep 24 | Re: Address bits again, Article on new mainframe use | 30 | | Lawrence D'Oliveiro |
8 Sep 24 | Re: Address bits again, Article on new mainframe use | 29 | | MitchAlsup1 |
8 Sep 24 | Re: Address bits again, Article on new mainframe use | 4 | | MitchAlsup1 |
8 Sep 24 | Re: Address bits again, Article on new mainframe use | 3 | | Chris M. Thomasson |
9 Sep 24 | Re: Address bits again, Article on new mainframe use | 2 | | Lawrence D'Oliveiro |
9 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Chris M. Thomasson |
9 Sep 24 | Re: Address bits again, Article on new mainframe use | 24 | | Lawrence D'Oliveiro |
9 Sep 24 | Re: Address bits again, Article on new mainframe use | 23 | | MitchAlsup1 |
10 Sep 24 | Re: Address bits again, Article on new mainframe use | 22 | | Lawrence D'Oliveiro |
11 Sep 24 | Re: Address bits again, Article on new mainframe use | 2 | | John Levine |
11 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
11 Sep 24 | Re: Address bits again, Article on new mainframe use | 19 | | MitchAlsup1 |
12 Sep 24 | Re: Address bits again, Article on new mainframe use | 18 | | Lawrence D'Oliveiro |
12 Sep 24 | Re: Address bits again, Article on new mainframe use | 17 | | Lars Poulsen |
12 Sep 24 | Re: Address bits again, Article on new mainframe use | 13 | | Lawrence D'Oliveiro |
13 Sep 24 | Re: Address bits again, Article on new mainframe use | 3 | | George Neuner |
4 Sep 24 | Re: Address bits again, Article on new mainframe use | 1 | | Lawrence D'Oliveiro |
28 Aug 24 | Re: Article on new mainframe use | 2 | | Lawrence D'Oliveiro |
23 Aug 24 | Re: Article on new mainframe use | 1 | | George Neuner |
16 Aug 24 | Re: Article on new mainframe use | 4 | | Lynn Wheeler |
15 Aug 24 | Re: Article on new mainframe use | 1 | | Thomas Koenig |
15 Aug 24 | Re: Article on new mainframe use | 7 | | Lawrence D'Oliveiro |