🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #4220

Re: Stupid programming errors

#4220
From: jcmo... Joe Morris
Date: Mon, 10 Sep 1990 13:57
24 lines
2141 bytes
In a recent article mnyk...@cc.helsinki.fi writes:
>An acquintance of mine was hired to speed up a COBOL accounting program
>which used some 8 hours to process some 1000's of transactions. She
>discovered that the program processed the first transaction, then
>REWOUND the file, sought the second, bypassing the first, rewound,
>sought the third, etc.. Instead of some 1000's of file operations the
>program performed some 1000000's!

Sounds like a program I had the displeasure of running on my system in
the late 1960's.  It was called SEMIS (State Extension Management Information
System), and as I recall it was distributed by USDA to the various states 
to keep track of the agricultural extension service activity.  The problem
was that it was written in COBOL, but the design criteria called for it to
be usable on just about any platform with a COBOL compiler, including those
which supported only the primitive COBOL subset.  Since the subset did not
include direct access I/O, it simulated the facility by REWIND/READ/READ...READ
which didn't do much for speed.  On an IBM 360/40 (which was not known for
its CPU speed) we recorded a wallclock-to-CPU time ratio of 3600:1. 

Unfortunately, the university had committed to run the program for the ag
campus without bothering to talk to the computer center, so we couldn't
get rid of it until the agreement expired.  Fortunately someone apparently
realized what it was doing to the (rather expensive) computer center
service levels and didn't renew the agreement.
Technical Details
Message-ID: <119586@linus.mitre.org>
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!uwm.edu!bionet!agate!linus!linus!mwunix.mitre.org!jcmorris
References: <3056.26e4dd44@cc.helsinki.fi>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!uwm.edu!bionet!agate!linus!linus!mwunix.mitre.org!jcmorris
From: jcmo...@mwunix.mitre.org (Joe Morris)
Newsgroups: alt.folklore.computers
Subject: Re: Stupid programming errors
Message-ID: <119586@linus.mitre.org>
Date: 10 Sep 90 13:57:56 GMT
References: <3056.26e4dd44@cc.helsinki.fi>
Sender: use...@linus.mitre.org
Reply-To: jcmo...@mwunix.mitre.org (Joe Morris)
Organization: The Mitre Corporation
Lines: 24
Posted: Mon Sep 10 14:57:56 1990
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit