[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [open-cobol-list] Bug in Sort Verb
From: |
Robert Sherry |
Subject: |
RE: [open-cobol-list] Bug in Sort Verb |
Date: |
Mon Jun 6 06:41:46 2005 |
Thanks for the response. Your email explains the results that I have
been seeing.
Bob Sherry
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Hans-Martin Rasch
Sent: Monday, June 06, 2005 2:55 AM
To: address@hidden
Subject: [open-cobol-list] Bug in Sort Verb
Hi,
the newer BDB versions (I don't know since when, we use 4.2) have the
following feature:
if the key compare function regards two keys to be equal, only one of them
is
stored in the BDB database (see BDB Reference Guide, section 3.4.4
"Duplicate
Data Items").
On the other hand, OC tries to store the complete sort data record in the
BDB
key.
As a consequence, in the sort output two or more sort input records with
identical sort fields will be overwritten by one of these records.
To solve this problem, the key compare function should return "0", only if
the
two input records are completely identical (not only the sort fields).
Maybe it would be best to append the input record number to the sort data
and
check it during compare, this would also give "DUPLICATES IN ORDER".
Hans-Martin Rasch
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you
shotput
a projector? How fast can you ride your desk chair down the office luge
track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list