Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ecsvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!vax135!cornell!uw-beaver!tektronix!decvax!mcnc!ecsvax!dgary From: dgary@ecsvax.UUCP (D Gary Grady) Newsgroups: net.bugs,net.flame,net.puzzle Subject: Re: Computer bugs in the year 2000 Message-ID: <538@ecsvax.UUCP> Date: Tue, 22-Jan-85 12:07:52 EST Article-I.D.: ecsvax.538 Posted: Tue Jan 22 12:07:52 1985 Date-Received: Fri, 25-Jan-85 21:25:47 EST References: <820@reed.UUCP>, <20381@arizona.UUCP> Organization: Duke U Comp Ctr Lines: 38 Xref: watmath net.bugs:512 net.flame:8020 net.puzzle:514 <> > The problem won't be the computers, but the software. Some software is > bound to be wrong, only considering the last two digits of the year. And thereby hangs a tale: In 1978, when I was working in banking, I ran across a curious date storage format. It seems that transaction dates were coded with the last digit of the year in one nibble, the month in hex in the next, and the date (in packed decimal) in the next two. I asked one of the more senior systems analysts about this and she informed me that when the record was originally designed, only the month and day (in packed decimal) had been included. This caused sorting problems on statements printed in January, because checks written in the December of the previous year would sort after checks written in January of the current. So the format had been modified to the one I just described. "Good grief!" said I. "What happens in January of 1980?" She turned pale and admitted she had considered that before but managed to put it out of her mind. "So why not go ahead and fix it now?" I asked. She pointed out that fixing it would require expanding the demand deposit master record format, a mammoth undertaking. About a billion COBOL programs would have to be recompiled. At this shop we were still on cards and a rush compile took about a week. "You want to do that?" she inquired. This time I turned pale. We considered our options, knowing that one or the other of us would be called upon to fix the problem. And you know what we did? First, I modified the daily demand deposit program with code that checked for the date and about mid-1979 started printed warnings on the console of what would happen come new year. Then the systems analyst and I got new jobs. This is known as stepwise interactive development. -- D Gary Grady Duke U Comp Center, Durham, NC 27706 (919) 684-3695 USENET: {seismo,decvax,ihnp4,akgua,etc.}!mcnc!ecsvax!dgary