Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will never amount to much. -- Munich Schoolmaster, to Albert Einstein, age 10


computers / alt.folklore.computers / Re: COBOL and tricks

SubjectAuthor
* Re: Fwd: Linux on a small memory PCCharlie Gibbs
`* Re: Fwd: Linux on a small memory PC25B.Z959
 +* Re: Fwd: Linux on a small memory PCCharlie Gibbs
 |`- Re: Fwd: Linux on a small memory PC25B.Z959
 +* Re: Fwd: Linux on a small memory PCPeter Flass
 |+* Re: Fwd: Linux on a small memory PCThe Natural Philosopher
 ||`* Re: Fwd: Linux on a small memory PCPeter Flass
 || +* Re: COBOL and tricksLew Pitcher
 || |+* Re: COBOL and tricksPeter Flass
 || ||+* Re: COBOL and tricksDavid W. Hodgins
 || |||+* Re: COBOL and tricksDan Espen
 || ||||+* Re: COBOL and tricksPeter Flass
 || |||||+* Re: COBOL and tricksCharlie Gibbs
 || ||||||`* Re: COBOL and tricks25B.Z959
 || |||||| `* Re: COBOL and tricksPeter Flass
 || ||||||  `- Re: COBOL and tricksCharlie Gibbs
 || |||||`- Re: COBOL and tricksDan Espen
 || ||||`- Re: COBOL and tricksRichard Kettlewell
 || |||`* Re: COBOL and tricksCharlie Gibbs
 || ||| +- Re: COBOL and tricksPeter Flass
 || ||| `- Re: COBOL and tricksDan Espen
 || ||+* Re: COBOL and tricksDan Espen
 || |||+* Re: COBOL and tricksPeter Flass
 || ||||+* Re: COBOL and tricksCharlie Gibbs
 || |||||+- Re: COBOL and tricksAhem A Rivet's Shot
 || |||||+* Re: COBOL and tricksThe Natural Philosopher
 || ||||||`- Re: COBOL and tricksPeter Flass
 || |||||`* Re: COBOL and tricksQuadibloc
 || ||||| `* Re: COBOL and tricksCharlie Gibbs
 || |||||  +- Re: COBOL and tricksAhem A Rivet's Shot
 || |||||  `- Re: COBOL and tricksAhem A Rivet's Shot
 || ||||`* Re: COBOL and tricksDan Espen
 || |||| `- Re: COBOL and tricksCharlie Gibbs
 || |||`* Re: COBOL and tricksCharlie Gibbs
 || ||| `- Re: COBOL and tricksPeter Flass
 || ||+- Re: COBOL and tricksScott Lurndal
 || ||+* Re: COBOL and tricksD.J.
 || |||`* Re: COBOL and tricks25B.Z959
 || ||| +* Re: COBOL and tricksTauno Voipio
 || ||| |`- Re: COBOL and tricks25B.Z959
 || ||| +- Re: COBOL and tricksScott Lurndal
 || ||| +- Re: COBOL and tricksG.K.
 || ||| +- Re: COBOL and tricksD.J.
 || ||| `- Re: COBOL and tricksAnne & Lynn Wheeler
 || ||`* Re: COBOL and tricksCharlie Gibbs
 || || `- Re: COBOL and tricksDan Espen
 || |+* Re: COBOL and tricksAnne & Lynn Wheeler
 || ||`* Re: COBOL and tricksPeter Flass
 || || +* Re: COBOL and tricksThe Natural Philosopher
 || || |`- Re: COBOL and tricksPeter Flass
 || || `* Re: COBOL and tricksScott Lurndal
 || ||  +- Re: COBOL and tricksPeter Flass
 || ||  `- Re: COBOL and tricksDan Espen
 || |`* Re: COBOL and tricks25B.Z959
 || | `* Re: COBOL and tricksLew Pitcher
 || |  +* Re: COBOL and tricksKerr-Mudd, John
 || |  |`* Re: COBOL and tricksCharlie Gibbs
 || |  | `* Re: COBOL and tricksKerr-Mudd, John
 || |  |  `* Re: COBOL and tricksLew Pitcher
 || |  |   `* Re: COBOL and tricksCharlie Gibbs
 || |  |    `* Re: COBOL and tricksAhem A Rivet's Shot
 || |  |     `* Re: COBOL and tricksCharlie Gibbs
 || |  |      `- Re: COBOL and tricksAhem A Rivet's Shot
 || |  +- Re: COBOL and tricksCharlie Gibbs
 || |  `* Re: COBOL and tricks25B.Z959
 || |   +* Re: COBOL and tricksLew Pitcher
 || |   |+* Re: COBOL and tricksCharlie Gibbs
 || |   ||`- Re: COBOL and tricks25B.Z959
 || |   |+* Re: COBOL and tricksAllodoxaphobia
 || |   ||+* Re: COBOL and tricks25B.Z959
 || |   |||`* Re: COBOL and tricksAlan Bowler
 || |   ||| `* Re: COBOL and tricksJohn Levine
 || |   |||  `* Re: COBOL and tricksAnne & Lynn Wheeler
 || |   |||   `- Re: COBOL and tricksAnne & Lynn Wheeler
 || |   ||+- Re: COBOL and tricksAhem A Rivet's Shot
 || |   ||`* Re: COBOL and tricksKerr-Mudd, John
 || |   || +- Re: COBOL and tricksDan Espen
 || |   || +* Re: COBOL and tricksDennis Boone
 || |   || |`* Re: COBOL and tricksScott Lurndal
 || |   || | +- Re: COBOL and tricksKerr-Mudd, John
 || |   || | `* Re: COBOL and tricksPeter Flass
 || |   || |  +* Re: COBOL and tricksScott Lurndal
 || |   || |  |+- Re: COBOL and tricksPeter Flass
 || |   || |  |`* Re: COBOL and tricksCharles Richmond
 || |   || |  | `- Re: COBOL and tricksRich Alderson
 || |   || |  +- Re: COBOL and tricksDan Espen
 || |   || |  `* Re: COBOL and tricksCharles Richmond
 || |   || |   `* Re: COBOL and tricksAhem A Rivet's Shot
 || |   || |    `- Re: COBOL and tricksCharlie Gibbs
 || |   || `* Re: COBOL and tricks25B.Z959
 || |   ||  +* Re: COBOL and tricksJack Strangio
 || |   ||  |`- Re: COBOL and tricksPeter Flass
 || |   ||  `- Re: COBOL and tricksAllodoxaphobia
 || |   |`* Re: COBOL and tricks25B.Z959
 || |   | +* Re: COBOL and tricksCharlie Gibbs
 || |   | |`* Re: COBOL and tricks25B.Z959
 || |   | | +- Re: COBOL and tricksmaus
 || |   | | `- Re: COBOL and tricksCharlie Gibbs
 || |   | `* Re: COBOL and tricksCharles Richmond
 || |   |  `* Re: COBOL and tricksMike Spencer
 || |   |   `* Re: COBOL and tricksCharlie Gibbs
 || |   `* Re: COBOL and tricksPeter Flass
 || `* Re: Fwd: Linux on a small memory PCThe Natural Philosopher
 |`* Re: Fwd: Linux on a small memory PCJ. Clarke
 `* Re: Fwd: Linux on a small memory PCJ. Clarke

Pages:12345678910111213141516171819202122232425262728
Re: COBOL and tricks

<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5880&group=alt.folklore.computers#5880

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: admin@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Sun, 24 Jul 2022 21:13:32 +0100
Organization: Dis
Lines: 40
Message-ID: <20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="99c8c91f2195bc2416e5f554c2fe6571";
logging-data="855198"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WHTD9tCOE7dMDVEhkRiNpeKvKwSJu5v4="
Cancel-Lock: sha1:qtHrR6MwioGyhB/eEfdeQUoiwEA=
;X-no-Archive: Maybe
GNU: Terry Pratchett
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
 by: Kerr-Mudd, John - Sun, 24 Jul 2022 20:13 UTC

On 23 Jul 2022 23:50:45 GMT
Allodoxaphobia <trepidation@example.net> wrote:

> On Sat, 23 Jul 2022 19:32:03 -0000 (UTC), Lew Pitcher wrote:
> >
> > This development occurred in a large (1000+ branch) banking environment.
> > When we got specs from the users, they were along the lines of
> > you MULTIPLY the ACCOUNT BALANCE by the MONTHLY INTEREST RATE,
> > giving the INTEREST ADJUSTMENT.
> > you then ADD the INTEREST ADJUSTMENT to the ACCOUNT BALANCE,
> > giving the ADJUSTED ACCOUNT BALANCE.
> > which a programmer might convert into
> > MULTIPLY ACCOUNT-BALANCE BY MONTHLY-INTEREST-RATE GIVING INTEREST-ADJUSTMENT.
> > ADD INTEREST-ADJUSTMENT TO ACCOUNT-BALANCE GIVING ADJUSTED-ACCOUNT-BALANCE.
> >
> > The convenience was that the user's description /was/ the program code.
>
> Good luck finding white collar droids
> now-a-days that can write that clearly!
>

Even in those days it might have been

SET 0800-INTADJ = IFILE-ACCTBAL * MIR
SET OFILE-ADJACCTBAL = IFILE-ACCTBAL + 0800-INTADJ

or somesuch "standard"

> Ya, a couple hundred years ago I was a programmer in a corporate-captive
> service company that did the data processing for 25 or so branch banks.
> Did PL/1 and assembler -- mostly on the systems side versus applications.
> The specs that came down for projects was always well defined and detailed.
>
> I don't think that's the case these days.
>
> Jonesy

--
Bah, and indeed Humbug.

Re: COBOL and tricks

<tbklpi$sqpl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5884&group=alt.folklore.computers#5884

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Sun, 24 Jul 2022 19:49:03 -0400
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <tbklpi$sqpl$1@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="ecb5f9d85c5a270e87d5c410bbff095a";
logging-data="944949"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UHm5vWkI/lA/ReRgCVNHRpzil4RdwHG8="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:X3B2YVm/K+vaykKAL19QtQlQos4=
 by: Dan Espen - Sun, 24 Jul 2022 23:49 UTC

"Kerr-Mudd, John" <admin@127.0.0.1> writes:

> On 23 Jul 2022 23:50:45 GMT
> Allodoxaphobia <trepidation@example.net> wrote:
>
>> On Sat, 23 Jul 2022 19:32:03 -0000 (UTC), Lew Pitcher wrote:
>> >
>> > This development occurred in a large (1000+ branch) banking environment.
>> > When we got specs from the users, they were along the lines of
>> > you MULTIPLY the ACCOUNT BALANCE by the MONTHLY INTEREST RATE,
>> > giving the INTEREST ADJUSTMENT.
>> > you then ADD the INTEREST ADJUSTMENT to the ACCOUNT BALANCE,
>> > giving the ADJUSTED ACCOUNT BALANCE.
>> > which a programmer might convert into
>> > MULTIPLY ACCOUNT-BALANCE BY MONTHLY-INTEREST-RATE GIVING INTEREST-ADJUSTMENT.
>> > ADD INTEREST-ADJUSTMENT TO ACCOUNT-BALANCE GIVING ADJUSTED-ACCOUNT-BALANCE.
>> >
>> > The convenience was that the user's description /was/ the program code.
>>
>> Good luck finding white collar droids
>> now-a-days that can write that clearly!
>>
>
> Even in those days it might have been
>
> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
> SET OFILE-ADJACCTBAL = IFILE-ACCTBAL + 0800-INTADJ
>
> or somesuch "standard"

I can't recall seeing code that bad.
The language lends itself to using very consistent naming.
Most places I worked you could predict character for character what a
block of code would look like.

--
Dan Espen

Re: COBOL and tricks

<Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5885&group=alt.folklore.computers#5885

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 24 Jul 2022 21:25:59 -0500
Sender: Dennis Boone <drb@yagi.h-net.org>
From: drb@ihatespam.msu.edu (Dennis Boone)
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de> <tb6u29$15u9k$2@dont-email.me> <2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org> <tb71r6$14eug$1@dont-email.me> <2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com> <tb7qih$14eug$2@dont-email.me> <gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com> <tbhibj$3tqoq$1@dont-email.me> <slrntdp29d.2mlb.trepidation@vps.jonz.net> <20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
Date: Sun, 24 Jul 2022 21:25:59 -0500
Lines: 11
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-NIDX8Vethmf2GB6ikBfySSvq8M+MAvbNg/mQOJvsv5GndweZeEmLFhemCIwMNQsUKRGq0/V7i9RMQ0A!n5/fLMQMN2/dBfxypW3wOVkc4Ic+ibUFNqXsg/AbAxmzxjfb0fipjVyZZ9Iqo3d3LQOPXoY=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1598
X-Received-Bytes: 1689
 by: Dennis Boone - Mon, 25 Jul 2022 02:25 UTC

> SET 0800-INTADJ = IFILE-ACCTBAL * MIR

More like

MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.

or

COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.

De

Re: COBOL and tricks

<NJidnTudaOBaiEP_nZ2dnUU7-VnNnZ2d@earthlink.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5887&group=alt.folklore.computers#5887

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 24 Jul 2022 23:02:15 -0500
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me> <slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
From: 25B.Z959@nada.net (25B.Z959)
Date: Mon, 25 Jul 2022 00:02:14 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <NJidnTudaOBaiEP_nZ2dnUU7-VnNnZ2d@earthlink.com>
Lines: 35
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.113
X-Trace: sv3-WxD/z9NG0SDzZLdpuPlD1ZhkEEdUaT+SVVSKbrIaB9xNbiPV5GoWiVAwGV0WtW6pBtLFuAFQncakG4n!72d/txms9RwSpDXcUu/C3skKDnm1+552hD0M/mBFtien5XgL0/PpzwTQ8uU3TjdQdlD0eAhSSAB/!k/q8hkrMqeCgesn/8bBS
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3463
 by: 25B.Z959 - Mon, 25 Jul 2022 04:02 UTC

On 7/24/22 4:13 PM, Kerr-Mudd, John wrote:
> On 23 Jul 2022 23:50:45 GMT
> Allodoxaphobia <trepidation@example.net> wrote:
>
>> On Sat, 23 Jul 2022 19:32:03 -0000 (UTC), Lew Pitcher wrote:
>>>
>>> This development occurred in a large (1000+ branch) banking environment.
>>> When we got specs from the users, they were along the lines of
>>> you MULTIPLY the ACCOUNT BALANCE by the MONTHLY INTEREST RATE,
>>> giving the INTEREST ADJUSTMENT.
>>> you then ADD the INTEREST ADJUSTMENT to the ACCOUNT BALANCE,
>>> giving the ADJUSTED ACCOUNT BALANCE.
>>> which a programmer might convert into
>>> MULTIPLY ACCOUNT-BALANCE BY MONTHLY-INTEREST-RATE GIVING INTEREST-ADJUSTMENT.
>>> ADD INTEREST-ADJUSTMENT TO ACCOUNT-BALANCE GIVING ADJUSTED-ACCOUNT-BALANCE.
>>>
>>> The convenience was that the user's description /was/ the program code.
>>
>> Good luck finding white collar droids
>> now-a-days that can write that clearly!
>>
>
> Even in those days it might have been
>
> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
> SET OFILE-ADJACCTBAL = IFILE-ACCTBAL + 0800-INTADJ
>
> or somesuch "standard"

Heh heh .... yea, we all get sick of writing out
long "descriptive names" and "self documenting"
code. Something about it just grates on the soul,
impedes the creative impulse.

Re: COBOL and tricks

<HpKdnfYAbfikikP_nZ2dnUU7-cvNnZ2d@earthlink.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5888&group=alt.folklore.computers#5888

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 24 Jul 2022 23:08:25 -0500
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
From: 25B.Z959@nada.net (25B.Z959)
Date: Mon, 25 Jul 2022 00:08:24 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <HpKdnfYAbfikikP_nZ2dnUU7-cvNnZ2d@earthlink.com>
Lines: 102
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.113
X-Trace: sv3-4zHVTb/PjeLmwJV8iy30M0ScB/86L94x0lkapu25RFMhkQYMBlAM2rkMz4ALXWSV7CbNogyp20H6vMe!0yqYyFnDBIRaHfpcuwToU8os0kGh/P92/Jjlqht4mwUavjhqQerNgIOO/MkCquLAkQDKfQd7deY2!0BygNwe4KXdIYDTKD5LW
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 6401
X-Received-Bytes: 6492
 by: 25B.Z959 - Mon, 25 Jul 2022 04:08 UTC

On 7/23/22 6:23 PM, Peter Flass wrote:
> 25B.Z959 <25B.Z959@nada.net> wrote:
>> On 7/19/22 10:50 PM, Lew Pitcher wrote:
>>> On Tue, 19 Jul 2022 22:34:40 -0400, 25B.Z959 wrote:
>>>
>>>> On 7/19/22 3:48 PM, Lew Pitcher wrote:
>>>>> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>>>>>
>>>>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>>>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>>>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>>>> [snip]
>>>>>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>>>>>> during the 60s by the guys with skinny ties. They work
>>>>>>>>> very well, they're too expensive to re-do, so ....
>>>>>>>>>
>>>>>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>>>>>> there somewhere ... but money's so tight these days
>>>>>>>>> and so many of those legacy apps are so super-critical
>>>>>>>>> that they just can't/won't.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Maybe these are better than translators I have seen, but old ones produced
>>>>>>>> unreadable code, and they might well miss some litte tricks that the old
>>>>>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>>>>>> expensive, but a lot better, is to extract the specs from the existing
>>>>>>>> code, and there are re-engineering programs that can probably do a lot of
>>>>>>>> that work, and then rewrite in the new language using programmers skilled
>>>>>>>> in that language.
>>>>>>>>
>>>>>>>>
>>>>>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>>>>>> language is 'do it by the book, and write the book as documentation, as
>>>>>>> well'
>>>>>>>
>>>>>>
>>>>>> How much would you like to bet? Yes, the language encourages
>>>>>> straightforward programming, but I’ve seen things…
>>>>>
>>>>> A long time ago, I worked on many COBOL applications, including a
>>>>> client (PC) / server (MVS) communications application. I've seen
>>>>> things that I cannot unsee, coded things that I cannot uncode.
>>>>
>>>>
>>>> Got any of it on a floppy or print-out anywhere ? I'd
>>>> love to see how to do client/server only using COBOL.
>>>
>>> Both client and server used the same COBOL codebase, but with
>>> different compilers and operating environments.
>>>
>>> The client was coded in Microfocus "Visual Object (VISOC)" COBOL
>>> and ran on Windows NT 3 and Windows NT 4.1, using a TCP/IP to SNA
>>> (terminal communications) connection.
>>>
>>> The server was coded in IBM COBOL and ran under IMS DC on an MVS
>>> system, using an SNA terminal LU as it's communications endpoint.
>>>
>>> As this was an in-house "inner platform" project (3 tier client/server
>>> architecture, circa 1990), I did not keep personal copies of any
>>> of the code. Suffice it to say that my first question to the architect,
>>> my first day on that project, was "Why COBOL?" The answer was "Because
>>> that's what the coders know."
>>
>>
>> Sometimes that IS a factor ... you have to have people who
>> can write it. But 1990 ... IMHO it should have been 'C'.
>>
>
> IMNSHO, COBOL. C is a terrible language for those types of language. Things
> that are so dimple in COBOL, like moving a character string with blank
> fill, or formatting numeric output, requires calling subroutines in C, and
> lack of length checking on string moves is a recipe for disaster.
>
> I have used both languages quite a bit, perhaps COBOL more, years ago, but
> neither is my preferred language, so I have no dog in this fight.

Sorry, I like 'C' - and have writ little functions, MY way,
to do a lot of the things you were talking about.

Only ASM gives you more control - and I've done my share of
that over the years too.

>
>>
>> Mostly I like "terse" languages - less typing and lots
>> of room left over for comments at the ends of the lines.
>
> Sounds like assembler ;-)

YES ! :-)

ASM ... MMmmmmmmm !

> It’s too easy to write tricky code with side-effects in C. COBOL might not
> be as self-documenting as advertised, but the operation of each statement
> is pretty obvious and easily understood.

So ... COBOL is for BAD PROGRAMMERS who can't foresee
downstream consequences hmmm ??? ;-)

Re: Fwd: Linux on a small memory PC

<Kd2dncQdB5pAh0P_nZ2dnUU7-cnNnZ2d@earthlink.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5889&group=alt.folklore.computers#5889

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 24 Jul 2022 23:23:57 -0500
Subject: Re: Fwd: Linux on a small memory PC
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb8m6v$1i9o2$10@dont-email.me> <WLWBK.527042$ntj.319471@fx15.iad>
From: 25B.Z959@nada.net (25B.Z959)
Date: Mon, 25 Jul 2022 00:23:56 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <WLWBK.527042$ntj.319471@fx15.iad>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <Kd2dncQdB5pAh0P_nZ2dnUU7-cnNnZ2d@earthlink.com>
Lines: 52
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.113
X-Trace: sv3-MRA5epVDMcdgCiqOyTYYCiVVsQxFGV5KHE6jQx6nqywr5bW3eOaH83gBn+0pTm8afbaWMOY8MLWBVPK!NKwhUbGMfu/0BfY0l74RSy+rIt+8GQrPgqTD/NWmwwSNu6XXUTjjjIfzbTZiC8YigTLWTFGtzGCU!vjW3oHgQhZbJ0q9XPAmC
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4293
X-Received-Bytes: 4415
 by: 25B.Z959 - Mon, 25 Jul 2022 04:23 UTC

On 7/20/22 1:16 PM, Charlie Gibbs wrote:
> On 2022-07-20, The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> COBOL IME was generally written by teams of coders after the analysts
>> had written the specification, to strict coding standards which if not
>> adhered to got you the sack.
>
> I once wrote some programs in a shop where I was given specs that were
> so detailed that I could probably have written a compiler for them.
> Unfortunately, I identified a number of cases that the specs didn't cover.
> When I asked about this, I was given the answer which is now at the top
> of my list of Famous Last Words: "Oh, don't worry about that - it'll
> never happen." Since I had enough experience by this time to know that
> "never" is usually about six months, I refused to proceed until all
> cases were accounted for. Beware of nasal demons!

The Bosses NEVER really understand what they're asking
for. That's not their function. They are task-masters,
not sages. THEIR bosses are even MORE oblivious, and
vengeful.

GET OUT of such establishments as FAST as possible even
IF it means less money. At least you'll still have your
pride and soul.

As I've said - what started as a Good Thing very quickly
became 'Dilbert' once Big Corporate got involved.

I always have this vision of a young Van Gogh getting a
steady job at "Popular Art (Amsterdam) Inc" ............

> As for coding standards, this shop's standards were so inefficient
> that it would take a job half an hour just to schedule, let alone run.
> I threw their precious standards into the trash can and wrote the system
> my way, which scheduled and ran in 30 seconds. When I was met with
> the predictable howls of anguish, I told them that I wanted to get things
> tested in a reasonable amount of time, and if they really wanted their
> standards that badly they could change it back when I was done.
> I doubt they ever did.

"Procedure" gives the Bosses an excuse for their paychecks.
Doing things fast and efficiently cuts them out - makes them
look as useless as they really are.

I was always able to find smaller outfits where Fast,
Efficient and Creative was coveted and appreciated.
I could identify Needs they didn't know existed and
act on them. The checks weren't quite as big - but ....

Re: COBOL and tricks

<fuydnSzqpodqvkP_nZ2dnUU7-VXNnZ2d@earthlink.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5890&group=alt.folklore.computers#5890

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 25 Jul 2022 00:02:47 -0500
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net> <tb75sm$16lh5$2@dont-email.me>
<2131809304.679966017.636441.peter_flass-yahoo.com@news.eternal-september.org>
<ZZHBK.98718$%i2.81584@fx48.iad>
From: 25B.Z959@nada.net (25B.Z959)
Date: Mon, 25 Jul 2022 01:02:46 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <ZZHBK.98718$%i2.81584@fx48.iad>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <fuydnSzqpodqvkP_nZ2dnUU7-VXNnZ2d@earthlink.com>
Lines: 33
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.113
X-Trace: sv3-YMASDxhArCJKJsVOG/0fbFl12pr+1ODjqs2+7xQahvOon+oYaea4D55gJyBsKZmW6kq2WwNdy1nOHs6!kt2ba5n2V0KbnxtcjZ7Ygv+wd4G0Z87vXoVvwtRDB77ydzcRsjLEoZMLiA4l0zgcBSsXjfqwDNBR!3CPCWzCpDRO8oELOuGGS
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3470
X-Received-Bytes: 3592
 by: 25B.Z959 - Mon, 25 Jul 2022 05:02 UTC

On 7/19/22 8:27 PM, Charlie Gibbs wrote:
> On 2022-07-19, Peter Flass <peter_flass@yahoo.com> wrote:
>
>> These days, of course, we’re awash in memory and it’s not worth doing
>> a lot of work to save a few bytes; not like the old days.
>
> In _The Mythical Man-Month_, Fred Brooks describes the decision to save
> 100 bytes by not having the date routine handle leap years.

Well, it's only wrong 25% of the time ... :-)

And hey, depending on the era and hardware, 100 bytes
MIGHT be critical.

Program micro-controllers ? I've done a number of apps
for them. You DO have to cut corners. 64-128 BYTES of RAM,
1k to 4K of EEPROM (or UV-Erase PROM) if you were lucky.

I still have a fondness for the PIC12-xxx series - 8-pin
wonders. Forget 'C' - go all ASM. ATMELs or AVRs might be
a little better these days. PIC32s - supercomputers ! :-)

Anyway, the bosses/taskmasters have to justify their
existence/paychecks ..... stupid decisions that SOUND
good gets them that. THEIR bosses are 10x MORE
oblivious - buzzword driven, dazzled by cost/profit
projection charts ...

CorpComp - it's all 'Dilbert' now. No wonder Winders
sucks - indeed is a National Security Threat.

Still have my UV-C box for erasing "JW" PIC chips.
That smell of ozone and NOx......

Re: COBOL and tricks

<7ZpDK.64090$sZ1.19046@fx07.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5891&group=alt.folklore.computers#5891

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<xLidnR_o-_ElKkH_nZ2dnUU7-SXNnZ2d@earthlink.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 18
Message-ID: <7ZpDK.64090$sZ1.19046@fx07.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 25 Jul 2022 05:36:03 UTC
Date: Mon, 25 Jul 2022 05:36:03 GMT
X-Received-Bytes: 2169
 by: Charlie Gibbs - Mon, 25 Jul 2022 05:36 UTC

On 2022-07-24, 25B.Z959 <25B.Z959@nada.net> wrote:

> FORTRAN is still pretty widely used also, esp in academic
> and engineering environments, mostly due to the huge volume
> of proven hard-core math routines which nobody wants to
> re-write.

Many rivals, with the benefit of hindsight, have crossed
swords with the old workhorse! Yet FORTRAN gallops on,
warts and all, more transportable than syphilis, fired
by a bottomless pit of working subprograms.
-- Stan Kelly-Bootle: The Devil's DP Dictionary

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: Fwd: Linux on a small memory PC

<X5qDK.463534$ssF.214083@fx14.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5892&group=alt.folklore.computers#5892

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Fwd: Linux on a small memory PC
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb8m6v$1i9o2$10@dont-email.me> <WLWBK.527042$ntj.319471@fx15.iad>
<Kd2dncQdB5pAh0P_nZ2dnUU7-cnNnZ2d@earthlink.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 20
Message-ID: <X5qDK.463534$ssF.214083@fx14.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 25 Jul 2022 05:45:27 UTC
Date: Mon, 25 Jul 2022 05:45:27 GMT
X-Received-Bytes: 2190
 by: Charlie Gibbs - Mon, 25 Jul 2022 05:45 UTC

On 2022-07-25, 25B.Z959 <25B.Z959@nada.net> wrote:

> I was always able to find smaller outfits where Fast,
> Efficient and Creative was coveted and appreciated.
> I could identify Needs they didn't know existed and
> act on them. The checks weren't quite as big - but ....

I've always gravitated toward smaller outfits . When I left $BIGCORP
for a smaller one, the hiring personnel director was baffled that
I would come to a job that paid less. But I got my sanity back,
and since the new establishment was closer to home, I saved $200
per month on gas plus a lot of commute time.

(Ten years later that outfit went Dilbert too, but that's another story.)

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<rFKp13.1K1o@yahoo.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5901&group=alt.folklore.computers#5901

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jackstrangio@yahoo.com (Jack Strangio)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 10:56:10 -0000 (UTC)
Organization: North Star Horizon Builders Club
Lines: 52
Message-ID: <rFKp13.1K1o@yahoo.com>
References: <NJidnTudaOBaiEP_nZ2dnUU7-VnNnZ2d@earthlink.com>
Injection-Date: Mon, 25 Jul 2022 10:56:10 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="99c72411995a0601f502849c5c28a028";
logging-data="1247687"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DzCNGBG4VVWPCR2vzISIjdUKfqF2LwJA="
Cancel-Lock: sha1:ICRr890bXTB0XHLjNkxRdTOq3RM=
X-Newsreader: TASS News Reader 3.7.2 jvs [linux]
 by: Jack Strangio - Mon, 25 Jul 2022 10:56 UTC

"25B.Z959" <25B.Z959@nada.net> writes:
>
> Heh heh .... yea, we all get sick of writing out
> long "descriptive names" and "self documenting"
> code. Something about it just grates on the soul,
> impedes the creative impulse.
>
I was probably a bit different from most people in that I went from BASIC to
COBOL within a very short period of time back in the 1980s.

I still have some source files from that time.I have no idea what the BASIC
programs were doing and, more the point, *how* they did it. When you get lines
like:

740 !#H9 TAB(10),C$," ",E$,A$,TAB(22),D$,A$,E$
745 K7$=" "+D$+"M"+A$+E$\ WRITE#5,K7$\!">>>",K7$,"<"
750 GOTO460
760 READ#1%L,&X
770 M5=(X+O+1)
780 A=A7(M5)\B=B7(M5)
790 A$=A7$(2*M5-1,2*M5)
800 B$=B7$(10*M5-9,10*M5)
810 B$=B$(1,(B8(M5)))
820 RETURN

and then find COBOL lines like this:

0352 NEW-ORDER.
0353 DISPLAY SCREEN-CLEAR LINE-FEEDS LINE-FEEDS.
0354 PERFORM TYPE-CUST.
0355
0356 MOVE " * ORDER FROM " TO PAPER-TYPE.
0357 MOVE CUST-NAME TO ORGANISATION-D.
0358 MOVE CUST-CODE TO WHO.
0359 MOVE MONTH-S TO WHEN-MONTH.
0360 MOVE YEAR-S TO WHEN-YEAR.
0361 OPEN OUTPUT ORDER-FILE.
0362 MOVE HEADER-TYPE TO HEADER-TYPE-D.
0363 MOVE " * O/No " TO FORM-TYPE.
0364 PERFORM NEW-ORD-1.

it's easy to know which language's source-code I prefer to read after not
seeing them for years.

Jack

--
Why do meteorites always land in craters?

Re: COBOL and tricks

<tblva2$105$1@news.misty.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5902&group=alt.folklore.computers#5902

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.77-58-244-139.dclient.hispeed.ch!not-for-mail
From: bqt@softjar.se (Johnny Billquist)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 13:37:37 +0200
Organization: MGT Consulting
Message-ID: <tblva2$105$1@news.misty.com>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 25 Jul 2022 11:37:39 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="77-58-244-139.dclient.hispeed.ch:77.58.244.139";
logging-data="1029"; mail-complaints-to="abuse@misty.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.11.0
Content-Language: en-US
In-Reply-To: <1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
 by: Johnny Billquist - Mon, 25 Jul 2022 11:37 UTC

On 2022-07-24 00:23, Peter Flass wrote:
> 25B.Z959 <25B.Z959@nada.net> wrote:
>> Sometimes that IS a factor ... you have to have people who
>> can write it. But 1990 ... IMHO it should have been 'C'.
>>
>
> IMNSHO, COBOL. C is a terrible language for those types of language.
Things
> that are so dimple in COBOL, like moving a character string with blank
> fill, or formatting numeric output, requires calling subroutines in
C, and
> lack of length checking on string moves is a recipe for disaster.
This is one of the weirder arguments I've ever seen:
"requires calling a subroutine in C". As if that somehow is a problem?
Not to mention it's a function, and not a subroutine. Any claim of "used
the language quite a bit" sounds hollow after that.

A statement to move a character string in COBOL will in the end be a
subroutine call as well.

And lack of length checking depends on the function. Nothing prevents
you from using strncpy in C. Or write your own, with whatever
characteristic you want. It will actually be pretty efficient.
Comparable to the provided functions.

> I have used both languages quite a bit, perhaps COBOL more, years
ago, but
> neither is my preferred language, so I have no dog in this fight.
> …
Seems like your C is both rusty and bad.

>> Mostly I like "terse" languages - less typing and lots
>> of room left over for comments at the ends of the lines.
>
> Sounds like assembler ;-)
>
> It’s too easy to write tricky code with side-effects in C. COBOL
might not
> be as self-documenting as advertised, but the operation of each statement
> is pretty obvious and easily understood.
What kind of side effects are we talking about? The operation of each
statement in C is very obvious and easy to understand.
Most people get into trouble because of memory handling. Not the
language semantics.
But that is where you get to the point where things gets even harder to
even do in COBOL. And if you manage to do it, it won't be easily understood.

Johnny

Re: COBOL and tricks

<slrntdt4j6.1438.trepidation@vps.jonz.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5904&group=alt.folklore.computers#5904

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: trepidation@example.net (Allodoxaphobia)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: 25 Jul 2022 12:54:42 GMT
Lines: 42
Message-ID: <slrntdt4j6.1438.trepidation@vps.jonz.net>
References: <871quvs7m8.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me> <slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
<NJidnTudaOBaiEP_nZ2dnUU7-VnNnZ2d@earthlink.com>
Reply-To: If_you_must-Reply_to@my.sig.adr
X-Trace: individual.net DKYbFvRAf9Yv7iD+6zExWA4SY12pXPINjGgHMBLglug7x0p8EG
Cancel-Lock: sha1:v/hQFm8+alN+gQkQ7KnlhY9HSMY=
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Allodoxaphobia - Mon, 25 Jul 2022 12:54 UTC

On Mon, 25 Jul 2022 00:02:14 -0400, 25B.Z959 wrote:
> On 7/24/22 4:13 PM, Kerr-Mudd, John wrote:
>> On 23 Jul 2022 23:50:45 GMT
>> Allodoxaphobia <trepidation@example.net> wrote:
>>
>>> On Sat, 23 Jul 2022 19:32:03 -0000 (UTC), Lew Pitcher wrote:
>>>>
>>>> This development occurred in a large (1000+ branch) banking environment.
>>>> When we got specs from the users, they were along the lines of
>>>> you MULTIPLY the ACCOUNT BALANCE by the MONTHLY INTEREST RATE,
>>>> giving the INTEREST ADJUSTMENT.
>>>> you then ADD the INTEREST ADJUSTMENT to the ACCOUNT BALANCE,
>>>> giving the ADJUSTED ACCOUNT BALANCE.
>>>> which a programmer might convert into
>>>> MULTIPLY ACCOUNT-BALANCE BY MONTHLY-INTEREST-RATE GIVING INTEREST-ADJUSTMENT.
>>>> ADD INTEREST-ADJUSTMENT TO ACCOUNT-BALANCE GIVING ADJUSTED-ACCOUNT-BALANCE.
>>>>
>>>> The convenience was that the user's description /was/ the program code.
>>>
>>> Good luck finding white collar droids
>>> now-a-days that can write that clearly!
>>
>> Even in those days it might have been
>>
>> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>> SET OFILE-ADJACCTBAL = IFILE-ACCTBAL + 0800-INTADJ
>>
>> or somesuch "standard"
>
> Heh heh .... yea, we all get sick of writing out
> long "descriptive names" and "self documenting"
> code. Something about it just grates on the soul,
> impedes the creative impulse.

I can envision change requests and new development requirements
being *text'ed* into the programming departments these days.

Jonesy
--
Marvin L Jones | Marvin | W3DHJ.net | linux
38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm

Re: COBOL and tricks

<nexDK.530895$zgr9.157846@fx13.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5905&group=alt.folklore.computers#5905

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de> <tb6u29$15u9k$2@dont-email.me> <2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org> <tb71r6$14eug$1@dont-email.me> <2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com> <tb7qih$14eug$2@dont-email.me> <gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com> <tbhibj$3tqoq$1@dont-email.me> <slrntdp29d.2mlb.trepidation@vps.jonz.net> <20220724211332.db65ec16fab49db469cd53a9@127.0.0.1> <Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
Lines: 53
Message-ID: <nexDK.530895$zgr9.157846@fx13.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 25 Jul 2022 13:52:19 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 25 Jul 2022 13:52:19 GMT
X-Received-Bytes: 2837
 by: Scott Lurndal - Mon, 25 Jul 2022 13:52 UTC

drb@ihatespam.msu.edu (Dennis Boone) writes:
> > SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>
>More like
>
> MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
>
>or
>
> COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
>
>De

Or,

1150-CK-TIME.
IF KLINGONS > 0
ACCEPT WS-TIME FROM TIME
MOVE WS-MIN OF WS-TIME TO DS-MIN
PERFORM 1145-CK-FLAG THRU 1145-EXIT
MOVE WS-SEC OF WS-TIME TO DS-SEC
MOVE DS-TABLE TO S-DATE
ELSE
GO TO 1150-EXIT.
COMPUTE T-STORE = DS-DATE - S-DATE.
IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
MOVE 14 TO MAX-NO
COMPUTE W = ((HQ2 - 1) * 14)
COMPUTE Z = ((HQ1 - 1) * 14)
INSPECT MASTER-TBL REPLACING ALL "K" BY " "
MOVE 0 TO RX
PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
MOVE 1 TO ATTACK-FLAG
PERFORM 5900-TRANS THRU 5900-EXIT
IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
DISPLAY "WARNING - STAR DATE: " S-DATE
DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
IF NOT TOO-LATE
MOVE DS-DATE TO WS-DATE.
IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
- E
MOVE 1 TO TOO-LATE-FLAG
ADD 230 TO WS-DATE
ELSE
IF S-DATE > WS-DATE
MOVE 1 TO INDICATE-X
PERFORM 8200-CK-DONE THRU 8200-EXIT.
1150-EXIT. EXIT.

:-)

Re: COBOL and tricks

<ByxDK.155418$eQ5.110149@fx08.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5906&group=alt.folklore.computers#5906

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de> <1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org> <tb6u29$15u9k$2@dont-email.me> <2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org> <tb71r6$14eug$1@dont-email.me> <2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com> <tb7qih$14eug$2@dont-email.me> <gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com> <1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org> <tblva2$105$1@news.misty.com>
Lines: 44
Message-ID: <ByxDK.155418$eQ5.110149@fx08.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 25 Jul 2022 14:13:53 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 25 Jul 2022 14:13:53 GMT
X-Received-Bytes: 3786
 by: Scott Lurndal - Mon, 25 Jul 2022 14:13 UTC

Johnny Billquist <bqt@softjar.se> writes:
>On 2022-07-24 00:23, Peter Flass wrote:
> > 25B.Z959 <25B.Z959@nada.net> wrote:
> >> Sometimes that IS a factor ... you have to have people who
> >> can write it. But 1990 ... IMHO it should have been 'C'.
> >>
> >
> > IMNSHO, COBOL. C is a terrible language for those types of language.
>Things
> > that are so dimple in COBOL, like moving a character string with blank
> > fill, or formatting numeric output, requires calling subroutines in
>C, and
> > lack of length checking on string moves is a recipe for disaster.
>This is one of the weirder arguments I've ever seen:
>"requires calling a subroutine in C". As if that somehow is a problem?
>Not to mention it's a function, and not a subroutine. Any claim of "used
>the language quite a bit" sounds hollow after that.

I suspect the poster was indicating that COBOL will generate the call
under the covers, while in C the programmer must code the call explicitly.

>
>A statement to move a character string in COBOL will in the end be a
>subroutine call as well.

Not on all systems, for example:

INSPECT COURSE-B REPLACING ALL " " BY ZEROS. 531 CARD 1 65864
01 065864 MVN 110607 000774 100008 CODE
01 065882 SEA 39B101 400000 600000 050384 CODE
01 065906 NEQ 25 0C065962 CODE
01 065916 MVA 10A202 F0F0F0 400000 CODE
01 065934 INC 01A107 200000 100008 CODE
01 065952 BUN 27 0C065882 CODE
or
MOVE "THIS IS A TEST" TO TEST-STRING. 235 CARD 1 109910
01 109910 MVA 101420 211148 213500 CODE

MVN -> Move numeric (moves 1 to 100 digits or zoned-digit bytes, truncating or padding)
MVA -> Move alpha (moves 1 to 100 bytes, truncating or padding the receiving field)
SEA -> Search memory (in this case, for the single byte EBCDIC space (0x40) character).
NEQ -> Branch if SEA didn't find search string.
INC -> Increment receiving field (by 2 in this case)
BUN -> Branch unconditionally.

Re: COBOL and tricks

<20220725205743.9a49fd420f632a6081b7b708@127.0.0.1>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5916&group=alt.folklore.computers#5916

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: admin@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 20:57:43 +0100
Organization: Dis
Lines: 61
Message-ID: <20220725205743.9a49fd420f632a6081b7b708@127.0.0.1>
References: <871quvs7m8.fsf@usenet.ankman.de>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
<Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
<nexDK.530895$zgr9.157846@fx13.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="f9eb47567a0d35d49cd5a92e6d947570";
logging-data="1511936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tldC/b71pdUT77n0BPKPpTFHVfxnStVU="
Cancel-Lock: sha1:exom0KGhDHspu7P4zLPxEGo0AKk=
;X-no-Archive: Maybe
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Mon, 25 Jul 2022 19:57 UTC

On Mon, 25 Jul 2022 13:52:19 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

> drb@ihatespam.msu.edu (Dennis Boone) writes:
> > > SET 0800-INTADJ = IFILE-ACCTBAL * MIR
> >
> >More like
> >
> > MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
> >
> >or
> >
> > COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
> >
> >De
>
> Or,
>
> 1150-CK-TIME.
> IF KLINGONS > 0
> ACCEPT WS-TIME FROM TIME
> MOVE WS-MIN OF WS-TIME TO DS-MIN
> PERFORM 1145-CK-FLAG THRU 1145-EXIT
> MOVE WS-SEC OF WS-TIME TO DS-SEC
> MOVE DS-TABLE TO S-DATE
> ELSE
> GO TO 1150-EXIT.
> COMPUTE T-STORE = DS-DATE - S-DATE.
> IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
> MOVE 14 TO MAX-NO
> COMPUTE W = ((HQ2 - 1) * 14)
> COMPUTE Z = ((HQ1 - 1) * 14)
> INSPECT MASTER-TBL REPLACING ALL "K" BY " "
> MOVE 0 TO RX
> PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
> VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
> MOVE 1 TO ATTACK-FLAG
> PERFORM 5900-TRANS THRU 5900-EXIT
> IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
> DISPLAY "WARNING - STAR DATE: " S-DATE
> DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
> DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
> DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
> IF NOT TOO-LATE
> MOVE DS-DATE TO WS-DATE.
> IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
> - E
> MOVE 1 TO TOO-LATE-FLAG
> ADD 230 TO WS-DATE
> ELSE
> IF S-DATE > WS-DATE
> MOVE 1 TO INDICATE-X
> PERFORM 8200-CK-DONE THRU 8200-EXIT.
> 1150-EXIT. EXIT.
>
> :-)

That'd be about right!

--
Bah, and indeed Humbug.

Re: COBOL and tricks

<574555364.680474584.174865.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5920&group=alt.folklore.computers#5920

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_flass@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 13:55:53 -0700
Organization: A noiseless patient Spider
Lines: 111
Message-ID: <574555364.680474584.174865.peter_flass-yahoo.com@news.eternal-september.org>
References: <ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
<HpKdnfYAbfikikP_nZ2dnUU7-cvNnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="05594f07d0bd6176b2b1f0ca11d47f31";
logging-data="1542378"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jWuMcjKcZaMcVs+bgKE2B"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:Fo8a+sLT/pWR85/hx3Iry6YMq7c=
sha1:8n61ZiP/4f+IuRMWrEjc6Y1DcTI=
 by: Peter Flass - Mon, 25 Jul 2022 20:55 UTC

25B.Z959 <25B.Z959@nada.net> wrote:
> On 7/23/22 6:23 PM, Peter Flass wrote:
>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>> On 7/19/22 10:50 PM, Lew Pitcher wrote:
>>>> On Tue, 19 Jul 2022 22:34:40 -0400, 25B.Z959 wrote:
>>>>
>>>>> On 7/19/22 3:48 PM, Lew Pitcher wrote:
>>>>>> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>>>>>>
>>>>>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>>>>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>>>>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>>>>> [snip]
>>>>>>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>>>>>>> during the 60s by the guys with skinny ties. They work
>>>>>>>>>> very well, they're too expensive to re-do, so ....
>>>>>>>>>>
>>>>>>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>>>>>>> there somewhere ... but money's so tight these days
>>>>>>>>>> and so many of those legacy apps are so super-critical
>>>>>>>>>> that they just can't/won't.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Maybe these are better than translators I have seen, but old ones produced
>>>>>>>>> unreadable code, and they might well miss some litte tricks that the old
>>>>>>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>>>>>>> expensive, but a lot better, is to extract the specs from the existing
>>>>>>>>> code, and there are re-engineering programs that can probably do a lot of
>>>>>>>>> that work, and then rewrite in the new language using programmers skilled
>>>>>>>>> in that language.
>>>>>>>>>
>>>>>>>>>
>>>>>>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>>>>>>> language is 'do it by the book, and write the book as documentation, as
>>>>>>>> well'
>>>>>>>>
>>>>>>>
>>>>>>> How much would you like to bet? Yes, the language encourages
>>>>>>> straightforward programming, but I’ve seen things…
>>>>>>
>>>>>> A long time ago, I worked on many COBOL applications, including a
>>>>>> client (PC) / server (MVS) communications application. I've seen
>>>>>> things that I cannot unsee, coded things that I cannot uncode.
>>>>>
>>>>>
>>>>> Got any of it on a floppy or print-out anywhere ? I'd
>>>>> love to see how to do client/server only using COBOL.
>>>>
>>>> Both client and server used the same COBOL codebase, but with
>>>> different compilers and operating environments.
>>>>
>>>> The client was coded in Microfocus "Visual Object (VISOC)" COBOL
>>>> and ran on Windows NT 3 and Windows NT 4.1, using a TCP/IP to SNA
>>>> (terminal communications) connection.
>>>>
>>>> The server was coded in IBM COBOL and ran under IMS DC on an MVS
>>>> system, using an SNA terminal LU as it's communications endpoint.
>>>>
>>>> As this was an in-house "inner platform" project (3 tier client/server
>>>> architecture, circa 1990), I did not keep personal copies of any
>>>> of the code. Suffice it to say that my first question to the architect,
>>>> my first day on that project, was "Why COBOL?" The answer was "Because
>>>> that's what the coders know."
>>>
>>>
>>> Sometimes that IS a factor ... you have to have people who
>>> can write it. But 1990 ... IMHO it should have been 'C'.
>>>
>>
>> IMNSHO, COBOL. C is a terrible language for those types of language. Things
>> that are so dimple in COBOL, like moving a character string with blank
>> fill, or formatting numeric output, requires calling subroutines in C, and
>> lack of length checking on string moves is a recipe for disaster.
>>
>> I have used both languages quite a bit, perhaps COBOL more, years ago, but
>> neither is my preferred language, so I have no dog in this fight.
>
>
> Sorry, I like 'C' - and have writ little functions, MY way,
> to do a lot of the things you were talking about.
>
> Only ASM gives you more control - and I've done my share of
> that over the years too.
>
>>
>>>
>>> Mostly I like "terse" languages - less typing and lots
>>> of room left over for comments at the ends of the lines.
>>
>> Sounds like assembler ;-)
>
>
> YES ! :-)
>
> ASM ... MMmmmmmmm !
>
>
>> It’s too easy to write tricky code with side-effects in C. COBOL might not
>> be as self-documenting as advertised, but the operation of each statement
>> is pretty obvious and easily understood.
>
> So ... COBOL is for BAD PROGRAMMERS who can't foresee
> downstream consequences hmmm ??? ;-)
>

No, COBOL is for the NEXT poor bastard who has to look at your code and
try to figure out what the heck you were trying to do. The more “concise” a
language is, the more write-only it tends to be.

--
Pete

Re: COBOL and tricks

<1465525836.680474757.512898.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5921&group=alt.folklore.computers#5921

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_flass@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 13:55:54 -0700
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <1465525836.680474757.512898.peter_flass-yahoo.com@news.eternal-september.org>
References: <UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net>
<tb75sm$16lh5$2@dont-email.me>
<2131809304.679966017.636441.peter_flass-yahoo.com@news.eternal-september.org>
<ZZHBK.98718$%i2.81584@fx48.iad>
<fuydnSzqpodqvkP_nZ2dnUU7-VXNnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="05594f07d0bd6176b2b1f0ca11d47f31";
logging-data="1542378"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jxCGCBLmwndWrx/MBp/QX"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:aaE9h43K3eqtke09PWbJdZ9DqEo=
sha1:DIahVzNPkQQjZZGHERXSbNMImhQ=
 by: Peter Flass - Mon, 25 Jul 2022 20:55 UTC

25B.Z959 <25B.Z959@nada.net> wrote:
> On 7/19/22 8:27 PM, Charlie Gibbs wrote:
>> On 2022-07-19, Peter Flass <peter_flass@yahoo.com> wrote:
>>
>>> These days, of course, we’re awash in memory and it’s not worth doing
>>> a lot of work to save a few bytes; not like the old days.
>>
>> In _The Mythical Man-Month_, Fred Brooks describes the decision to save
>> 100 bytes by not having the date routine handle leap years.
>
> Well, it's only wrong 25% of the time ... :-)

Not really, because the operator had to set the date and time at each IPL,
and many shops IPLed often enough that it wasn’t a problem. We used to IPL
every night at the end of third shift.

--
Pete

Re: COBOL and tricks

<2005974342.680475137.998087.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5922&group=alt.folklore.computers#5922

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_flass@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 13:56:21 -0700
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <2005974342.680475137.998087.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
<Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
<nexDK.530895$zgr9.157846@fx13.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="02a4599280a70014540b9073b5f9c3b6";
logging-data="1542518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LSVpnGlg5Wggrz/62EAbV"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:7bI+HX5xWtUTWgwLkOJ+1Kk0qIs=
sha1:WbVRUiSHwTyOUsahA+lH23J7exo=
 by: Peter Flass - Mon, 25 Jul 2022 20:56 UTC

Scott Lurndal <scott@slp53.sl.home> wrote:
> drb@ihatespam.msu.edu (Dennis Boone) writes:
>>> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>>
>> More like
>>
>> MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
>>
>> or
>>
>> COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
>>
>> De
>
> Or,
>
> 1150-CK-TIME.
> IF KLINGONS > 0
> ACCEPT WS-TIME FROM TIME
> MOVE WS-MIN OF WS-TIME TO DS-MIN
> PERFORM 1145-CK-FLAG THRU 1145-EXIT
> MOVE WS-SEC OF WS-TIME TO DS-SEC
> MOVE DS-TABLE TO S-DATE
> ELSE
> GO TO 1150-EXIT.
> COMPUTE T-STORE = DS-DATE - S-DATE.
> IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
> MOVE 14 TO MAX-NO
> COMPUTE W = ((HQ2 - 1) * 14)
> COMPUTE Z = ((HQ1 - 1) * 14)
> INSPECT MASTER-TBL REPLACING ALL "K" BY " "
> MOVE 0 TO RX
> PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
> VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
> MOVE 1 TO ATTACK-FLAG
> PERFORM 5900-TRANS THRU 5900-EXIT
> IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
> DISPLAY "WARNING - STAR DATE: " S-DATE
> DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
> DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
> DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
> IF NOT TOO-LATE
> MOVE DS-DATE TO WS-DATE.
> IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
> - E
> MOVE 1 TO TOO-LATE-FLAG
> ADD 230 TO WS-DATE
> ELSE
> IF S-DATE > WS-DATE
> MOVE 1 TO INDICATE-X
> PERFORM 8200-CK-DONE THRU 8200-EXIT.
> 1150-EXIT. EXIT.
>
> :-)
>

If I had a programmer working for me who coded like that,be having a talk.
I HAVE seen code like that, usually written by someone who thought
programming was beneath him and was bored. Such people were usually
promoted to management, where they fit right in.

--
Pete

Re: COBOL and tricks

<1602778209.680475029.641996.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5923&group=alt.folklore.computers#5923

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_flass@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 13:57:18 -0700
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <1602778209.680475029.641996.peter_flass-yahoo.com@news.eternal-september.org>
References: <NJidnTudaOBaiEP_nZ2dnUU7-VnNnZ2d@earthlink.com>
<rFKp13.1K1o@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="05594f07d0bd6176b2b1f0ca11d47f31";
logging-data="1543034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hOupYMw0+9tHXIwyH2nPp"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:RPEeY5erRmty+w7NLM/PpNxDI/o=
sha1:q05w5SfY0ZZTUH1sVHfq4Fq5vA8=
 by: Peter Flass - Mon, 25 Jul 2022 20:57 UTC

Jack Strangio <jackstrangio@yahoo.com> wrote:
> "25B.Z959" <25B.Z959@nada.net> writes:
>>
>> Heh heh .... yea, we all get sick of writing out
>> long "descriptive names" and "self documenting"
>> code. Something about it just grates on the soul,
>> impedes the creative impulse.
>>
> I was probably a bit different from most people in that I went from BASIC to
> COBOL within a very short period of time back in the 1980s.
>
> I still have some source files from that time.I have no idea what the BASIC
> programs were doing and, more the point, *how* they did it. When you get lines
> like:
>
> 740 !#H9 TAB(10),C$," ",E$,A$,TAB(22),D$,A$,E$
> 745 K7$=" "+D$+"M"+A$+E$\ WRITE#5,K7$\!">>>",K7$,"<"
> 750 GOTO460
> 760 READ#1%L,&X
> 770 M5=(X+O+1)
> 780 A=A7(M5)\B=B7(M5)
> 790 A$=A7$(2*M5-1,2*M5)
> 800 B$=B7$(10*M5-9,10*M5)
> 810 B$=B$(1,(B8(M5)))
> 820 RETURN
>
> and then find COBOL lines like this:
>
> 0352 NEW-ORDER.
> 0353 DISPLAY SCREEN-CLEAR LINE-FEEDS LINE-FEEDS.
> 0354 PERFORM TYPE-CUST.
> 0355
> 0356 MOVE " * ORDER FROM " TO PAPER-TYPE.
> 0357 MOVE CUST-NAME TO ORGANISATION-D.
> 0358 MOVE CUST-CODE TO WHO.
> 0359 MOVE MONTH-S TO WHEN-MONTH.
> 0360 MOVE YEAR-S TO WHEN-YEAR.
> 0361 OPEN OUTPUT ORDER-FILE.
> 0362 MOVE HEADER-TYPE TO HEADER-TYPE-D.
> 0363 MOVE " * O/No " TO FORM-TYPE.
> 0364 PERFORM NEW-ORD-1.
>
>
> it's easy to know which language's source-code I prefer to read after not
> seeing them for years.
>
>
> Jack
>
>

+1

--
Pete

Re: COBOL and tricks

<kaEDK.445285$vAW9.431412@fx10.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5924&group=alt.folklore.computers#5924

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx10.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de> <tb71r6$14eug$1@dont-email.me> <2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com> <tb7qih$14eug$2@dont-email.me> <gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com> <tbhibj$3tqoq$1@dont-email.me> <slrntdp29d.2mlb.trepidation@vps.jonz.net> <20220724211332.db65ec16fab49db469cd53a9@127.0.0.1> <Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com> <nexDK.530895$zgr9.157846@fx13.iad> <2005974342.680475137.998087.peter_flass-yahoo.com@news.eternal-september.org>
Lines: 80
Message-ID: <kaEDK.445285$vAW9.431412@fx10.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 25 Jul 2022 21:45:52 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 25 Jul 2022 21:45:52 GMT
X-Received-Bytes: 4086
 by: Scott Lurndal - Mon, 25 Jul 2022 21:45 UTC

Peter Flass <peter_flass@yahoo.com> writes:
>Scott Lurndal <scott@slp53.sl.home> wrote:
>> drb@ihatespam.msu.edu (Dennis Boone) writes:
>>>> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>>>
>>> More like
>>>
>>> MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
>>>
>>> or
>>>
>>> COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
>>>
>>> De
>>
>> Or,
>>
>> 1150-CK-TIME.
>> IF KLINGONS > 0
>> ACCEPT WS-TIME FROM TIME
>> MOVE WS-MIN OF WS-TIME TO DS-MIN
>> PERFORM 1145-CK-FLAG THRU 1145-EXIT
>> MOVE WS-SEC OF WS-TIME TO DS-SEC
>> MOVE DS-TABLE TO S-DATE
>> ELSE
>> GO TO 1150-EXIT.
>> COMPUTE T-STORE = DS-DATE - S-DATE.
>> IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
>> MOVE 14 TO MAX-NO
>> COMPUTE W = ((HQ2 - 1) * 14)
>> COMPUTE Z = ((HQ1 - 1) * 14)
>> INSPECT MASTER-TBL REPLACING ALL "K" BY " "
>> MOVE 0 TO RX
>> PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
>> VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
>> MOVE 1 TO ATTACK-FLAG
>> PERFORM 5900-TRANS THRU 5900-EXIT
>> IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
>> DISPLAY "WARNING - STAR DATE: " S-DATE
>> DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
>> DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
>> DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
>> IF NOT TOO-LATE
>> MOVE DS-DATE TO WS-DATE.
>> IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
>> - E
>> MOVE 1 TO TOO-LATE-FLAG
>> ADD 230 TO WS-DATE
>> ELSE
>> IF S-DATE > WS-DATE
>> MOVE 1 TO INDICATE-X
>> PERFORM 8200-CK-DONE THRU 8200-EXIT.
>> 1150-EXIT. EXIT.
>>
>> :-)
>>
>
>If I had a programmer working for me who coded like that,be having a talk.
>I HAVE seen code like that, usually written by someone who thought
>programming was beneath him and was bored. Such people were usually
>promoted to management, where they fit right in.
>

Speak to Kurt.

IDENTIFICATION DIVISION.
PROGRAM-ID. STREK.
AUTHOR. KURT WILHELM.
INSTALLATION. OAKLAND UNIVERSITY.
DATE-WRITTEN. COMPLETED SEPTEMBER 1, 1979.
*
*******************************************************
* STAR_TREK SIMULATES AN OUTER SPACE ADVENTURE GAME *
* ON A REMOTE TERMINAL. THE USER COMMANDS THE U.S.S. *
* ENTERPRISE, AND THRU VARIOUS OFFENSIVE AND DEFEN- *
* SIVE COMMANDS, TRAVELS THROUGHOUT THE GALAXY ON A *
* MISSION TO DESTROY ALL KLINGONS, WHICH ALSO MANEU- *
* VER AND FIRE ON THE ENTERPRISE. *
*******************************************************

Re: COBOL and tricks

<P8FDK.545252$J0r9.201904@fx11.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5925&group=alt.folklore.computers#5925

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net> <tb75sm$16lh5$2@dont-email.me>
<2131809304.679966017.636441.peter_flass-yahoo.com@news.eternal-september.org>
<ZZHBK.98718$%i2.81584@fx48.iad>
<fuydnSzqpodqvkP_nZ2dnUU7-VXNnZ2d@earthlink.com>
<1465525836.680474757.512898.peter_flass-yahoo.com@news.eternal-september.org>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 31
Message-ID: <P8FDK.545252$J0r9.201904@fx11.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 25 Jul 2022 22:52:31 UTC
Date: Mon, 25 Jul 2022 22:52:31 GMT
X-Received-Bytes: 2917
 by: Charlie Gibbs - Mon, 25 Jul 2022 22:52 UTC

On 2022-07-25, Peter Flass <peter_flass@yahoo.com> wrote:

> 25B.Z959 <25B.Z959@nada.net> wrote:
>
>> On 7/19/22 8:27 PM, Charlie Gibbs wrote:
>>
>>> On 2022-07-19, Peter Flass <peter_flass@yahoo.com> wrote:
>>>
>>>> These days, of course, we’re awash in memory and it’s not worth doing
>>>> a lot of work to save a few bytes; not like the old days.
>>>
>>> In _The Mythical Man-Month_, Fred Brooks describes the decision to save
>>> 100 bytes by not having the date routine handle leap years.
>>
>> Well, it's only wrong 25% of the time ... :-)
>
> Not really, because the operator had to set the date and time at each IPL,
> and many shops IPLed often enough that it wasn’t a problem. We used to IPL
> every night at the end of third shift.

Ah yes, the good old days before computers had battery-backed time-of-day
clocks (or anything to set them from). One of the trade rags ran an ad
that showed a teaspoonful of ICs, accompanied by the statement: "Soon
you'll have an IBM 3090 in your wristwatch!" Someone quipped: "Yeah,
you'll boot MVS on it and the first thing it'll do is ask you the time."

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<Q8FDK.545253$J0r9.492663@fx11.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5926&group=alt.folklore.computers#5926

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx11.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
<HpKdnfYAbfikikP_nZ2dnUU7-cvNnZ2d@earthlink.com>
<574555364.680474584.174865.peter_flass-yahoo.com@news.eternal-september.org>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 29
Message-ID: <Q8FDK.545253$J0r9.492663@fx11.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Mon, 25 Jul 2022 22:52:32 UTC
Date: Mon, 25 Jul 2022 22:52:32 GMT
X-Received-Bytes: 2785
 by: Charlie Gibbs - Mon, 25 Jul 2022 22:52 UTC

On 2022-07-25, Peter Flass <peter_flass@yahoo.com> wrote:

> 25B.Z959 <25B.Z959@nada.net> wrote:
>
>> On 7/23/22 6:23 PM, Peter Flass wrote:
>>
>>> It’s too easy to write tricky code with side-effects in C. COBOL might not
>>> be as self-documenting as advertised, but the operation of each statement
>>> is pretty obvious and easily understood.
>>
>> So ... COBOL is for BAD PROGRAMMERS who can't foresee
>> downstream consequences hmmm ??? ;-)
>
> No, COBOL is for the NEXT poor bastard who has to look at your code and
> try to figure out what the heck you were trying to do. The more “concise” a
> language is, the more write-only it tends to be.

I've cleaned up some pretty horrid COBOL code. Overly-verbose and
convoluted code can be just as bad as something overly concise.

A sufficiently determined programmer can write unreadable code
in any language. Convoluted code with no comments is even worse.
Convoluted code with outdated, incorrect comments is worse still.

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<tbn8tj$1h6ku$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5928&group=alt.folklore.computers#5928

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 19:27:45 -0400
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <tbn8tj$1h6ku$1@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de> <tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
<Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
<nexDK.530895$zgr9.157846@fx13.iad>
<2005974342.680475137.998087.peter_flass-yahoo.com@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="050670d6e003d784d21d9a77be0998c9";
logging-data="1612446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+f9SxJX7VbxpfeKzwMtp9ghuoioCls8EQ="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:br8F5T3nzQwGxyS/75g+Wai1gp8=
 by: Dan Espen - Mon, 25 Jul 2022 23:27 UTC

Peter Flass <peter_flass@yahoo.com> writes:

> Scott Lurndal <scott@slp53.sl.home> wrote:
>> drb@ihatespam.msu.edu (Dennis Boone) writes:
>>>> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>>>
>>> More like
>>>
>>> MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
>>>
>>> or
>>>
>>> COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
>>>
>>> De
>>
>> Or,
>>
>> 1150-CK-TIME.
>> IF KLINGONS > 0
>> ACCEPT WS-TIME FROM TIME
>> MOVE WS-MIN OF WS-TIME TO DS-MIN
>> PERFORM 1145-CK-FLAG THRU 1145-EXIT
>> MOVE WS-SEC OF WS-TIME TO DS-SEC
>> MOVE DS-TABLE TO S-DATE
>> ELSE
>> GO TO 1150-EXIT.
>> COMPUTE T-STORE = DS-DATE - S-DATE.
>> IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
>> MOVE 14 TO MAX-NO
>> COMPUTE W = ((HQ2 - 1) * 14)
>> COMPUTE Z = ((HQ1 - 1) * 14)
>> INSPECT MASTER-TBL REPLACING ALL "K" BY " "
>> MOVE 0 TO RX
>> PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
>> VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
>> MOVE 1 TO ATTACK-FLAG
>> PERFORM 5900-TRANS THRU 5900-EXIT
>> IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
>> DISPLAY "WARNING - STAR DATE: " S-DATE
>> DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
>> DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
>> DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
>> IF NOT TOO-LATE
>> MOVE DS-DATE TO WS-DATE.
>> IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
>> - E
>> MOVE 1 TO TOO-LATE-FLAG
>> ADD 230 TO WS-DATE
>> ELSE
>> IF S-DATE > WS-DATE
>> MOVE 1 TO INDICATE-X
>> PERFORM 8200-CK-DONE THRU 8200-EXIT.
>> 1150-EXIT. EXIT.
>>
>> :-)
>>
>
> If I had a programmer working for me who coded like that,be having a talk.
> I HAVE seen code like that, usually written by someone who thought
> programming was beneath him and was bored. Such people were usually
> promoted to management, where they fit right in.

Being a game, I'm not surprised. Business code would not look like that.

--
Dan Espen

Re: COBOL and tricks

<tbn9oq$1h6ku$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5929&group=alt.folklore.computers#5929

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1espen@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 19:42:16 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <tbn9oq$1h6ku$2@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<1993356671.680307216.022066.peter_flass-yahoo.com@news.eternal-september.org>
<tblva2$105$1@news.misty.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="050670d6e003d784d21d9a77be0998c9";
logging-data="1612446"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Zsq4TsxS7SIVDsNBbEvlkSaqU5T1VLYw="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:gRXp9phrEh1oqK4xrsFKIZR7k+Q=
 by: Dan Espen - Mon, 25 Jul 2022 23:42 UTC

Johnny Billquist <bqt@softjar.se> writes:

> On 2022-07-24 00:23, Peter Flass wrote:
>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>> Sometimes that IS a factor ... you have to have people who
>>> can write it. But 1990 ... IMHO it should have been 'C'.
>>>
>>
>> IMNSHO, COBOL. C is a terrible language for those types of
> language. Things
>> that are so dimple in COBOL, like moving a character string with blank
>> fill, or formatting numeric output, requires calling subroutines in
> C, and
>> lack of length checking on string moves is a recipe for disaster.
> This is one of the weirder arguments I've ever seen:
> "requires calling a subroutine in C". As if that somehow is a problem?
> Not to mention it's a function, and not a subroutine. Any claim of
> "used the language quite a bit" sounds hollow after that.
>
> A statement to move a character string in COBOL will in the end be a
> subroutine call as well.

And why do you think that?

I've sure seen lots of COBOL MOVE instructions generate a single
hardware instruction.

--
Dan Espen

Re: COBOL and tricks

<1626838835.680493226.293878.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5939&group=alt.folklore.computers#5939

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_flass@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Mon, 25 Jul 2022 18:55:10 -0700
Organization: A noiseless patient Spider
Lines: 88
Message-ID: <1626838835.680493226.293878.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<gKydnS1iKPAP1EH_nZ2dnUU7-L3NnZ2d@earthlink.com>
<tbhibj$3tqoq$1@dont-email.me>
<slrntdp29d.2mlb.trepidation@vps.jonz.net>
<20220724211332.db65ec16fab49db469cd53a9@127.0.0.1>
<Y7OdnT6V5ZGqYkD_nZ2dnUU7-KWdnZ2d@giganews.com>
<nexDK.530895$zgr9.157846@fx13.iad>
<2005974342.680475137.998087.peter_flass-yahoo.com@news.eternal-september.org>
<kaEDK.445285$vAW9.431412@fx10.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="a814ba44826b4b12bc75cceabaa3f199";
logging-data="1771092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X2avK+HEFh2wQdwq/23/x"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:uEb48X7jRi7aR8lHlAx3WptMRjs=
sha1:x5RCnNt3J6OyQIfL3PYYp1goATk=
 by: Peter Flass - Tue, 26 Jul 2022 01:55 UTC

Scott Lurndal <scott@slp53.sl.home> wrote:
> Peter Flass <peter_flass@yahoo.com> writes:
>> Scott Lurndal <scott@slp53.sl.home> wrote:
>>> drb@ihatespam.msu.edu (Dennis Boone) writes:
>>>>> SET 0800-INTADJ = IFILE-ACCTBAL * MIR
>>>>
>>>> More like
>>>>
>>>> MULTIPLY IFILE-ACCTBAL BY MIR GIVING 0800-INTADJ.
>>>>
>>>> or
>>>>
>>>> COMPUTE 0800-INTADJ = IFILE-ACCTBAL * MIR.
>>>>
>>>> De
>>>
>>> Or,
>>>
>>> 1150-CK-TIME.
>>> IF KLINGONS > 0
>>> ACCEPT WS-TIME FROM TIME
>>> MOVE WS-MIN OF WS-TIME TO DS-MIN
>>> PERFORM 1145-CK-FLAG THRU 1145-EXIT
>>> MOVE WS-SEC OF WS-TIME TO DS-SEC
>>> MOVE DS-TABLE TO S-DATE
>>> ELSE
>>> GO TO 1150-EXIT.
>>> COMPUTE T-STORE = DS-DATE - S-DATE.
>>> IF T-STORE < 90 AND NOT KLINGONS-ATTACKING
>>> MOVE 14 TO MAX-NO
>>> COMPUTE W = ((HQ2 - 1) * 14)
>>> COMPUTE Z = ((HQ1 - 1) * 14)
>>> INSPECT MASTER-TBL REPLACING ALL "K" BY " "
>>> MOVE 0 TO RX
>>> PERFORM 1170-MOVE-ON-HQ THRU 1170-EXIT
>>> VARYING KCTR FROM 1 BY 1 UNTIL KCTR > KLINGONS
>>> MOVE 1 TO ATTACK-FLAG
>>> PERFORM 5900-TRANS THRU 5900-EXIT
>>> IF (Q1 NOT = HQ1 OR Q2 NOT = HQ2)
>>> DISPLAY "WARNING - STAR DATE: " S-DATE
>>> DISPLAY "SCIENCE OFFICER SPOCK ADVISES"
>>> DISPLAY "YOU NAVIGATE TO QUADRANT " HQ1 "," HQ2
>>> DISPLAY "TO DEFEND STAR FLEET HEADQUARTERS".
>>> IF NOT TOO-LATE
>>> MOVE DS-DATE TO WS-DATE.
>>> IF S-DATE > WS-DATE AND Q1 = HQ1 AND Q2 = HQ2 AND NOT TOO-LAT
>>> - E
>>> MOVE 1 TO TOO-LATE-FLAG
>>> ADD 230 TO WS-DATE
>>> ELSE
>>> IF S-DATE > WS-DATE
>>> MOVE 1 TO INDICATE-X
>>> PERFORM 8200-CK-DONE THRU 8200-EXIT.
>>> 1150-EXIT. EXIT.
>>>
>>> :-)
>>>
>>
>> If I had a programmer working for me who coded like that,be having a talk.
>> I HAVE seen code like that, usually written by someone who thought
>> programming was beneath him and was bored. Such people were usually
>> promoted to management, where they fit right in.
>>
>
> Speak to Kurt.
>
> IDENTIFICATION DIVISION.
> PROGRAM-ID. STREK.
> AUTHOR. KURT WILHELM.
> INSTALLATION. OAKLAND UNIVERSITY.
> DATE-WRITTEN. COMPLETED SEPTEMBER 1, 1979.
> *
> *******************************************************
> * STAR_TREK SIMULATES AN OUTER SPACE ADVENTURE GAME *
> * ON A REMOTE TERMINAL. THE USER COMMANDS THE U.S.S. *
> * ENTERPRISE, AND THRU VARIOUS OFFENSIVE AND DEFEN- *
> * SIVE COMMANDS, TRAVELS THROUGHOUT THE GALAXY ON A *
> * MISSION TO DESTROY ALL KLINGONS, WHICH ALSO MANEU- *
> * VER AND FIRE ON THE ENTERPRISE. *
> *******************************************************
>
>

Well, in that case naming a variable klingons makes perfect sense. Maybe
not in a payroll program.

--
Pete


computers / alt.folklore.computers / Re: COBOL and tricks

Pages:12345678910111213141516171819202122232425262728
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor