For Programmers: Free Programming Magazines  


Home > Archive > Cobol > November 2004 > MF ISAM PROBLEMS.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MF ISAM PROBLEMS.
Donald Tees

2004-11-22, 8:55 pm



I am working on a system that makes extensive use of Isam to build
sorted tag files ... that is, the transactions are built into a file by
key value, then the file re-read sequentially to link back to the
original transactions during the report stage. The compiler is MF
3.0.14 running on Windows familly machines.

A strange Isam problem keeps cropping up ... when the file is read back,
several records will be missing. This will happen one time out of every
several thousand times the program is run, but when it does, it is
absolutely repeatable. Same data, same problem. I can even dump the
file to line sequential(using rebuild), and *see* the records that were
dropped. I trace through, and "read next" blows right by them as if they
were not there, even though the dump dumps them out in exactly the right
place.

If I change the key size by a character or two (stuff is strung into a
key 50 to 100 characters long, and there is lots of trailing space) then
re-run with the exact same data, the problem goes away. Change the key
size back, the problem comes back. I leave it changed, and ship it off
to the customer.

Three or four months later, using the new key size, the problem will
come back with a different set of data. It will work for thousands of
runs before this happens. I change it back to what it was three-four
months previously ... the problem goes away for another several months.

It is pretty obviously some obscure Isam bug, has anybody run into
anything like it before? If so, is there a solution?

Donald
PS to Jimmy. I have already checked knowledge base <G>.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com