Re: Cobol Linear search Vs Perfrom Until

From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 07/17/04


Date: Fri, 16 Jul 2004 22:03:00 GMT


"Glenn Someone" <dontspamme@whydoyouneedmyaddressspammers.com> wrote in message
news:rkhgf01hkvc8amalakdl0p1ba7o2u878eq@4ax.com...
> Why should it? <snip>
> Yes the position you arrive upon is unpredictable, but that doesn't
> make the algorithm unpredictable. It also doesn't justify throwing
> out the baby with the bath water and scrapping a superior algorithm
> for one that is not.
>

Glenn,
  Maybe I am misunderstanding you, but ...

If one codes a SEARCH ALL against a table that may or may not find the table
enttry that you want (i.e. it might be the first of duplicates, the second of
duplicates, or a random entry that doesn't even match any of the duplicate
entries), then I can't imagine what USE that would be.

A Standard conforming compiler *need not* even find one of the "duplicate"
entries when a SEARCH ALL is done - against a table with multiple entries with
the same key. The Standard (current and past) is pretty clear (as stated by
Chuck earlier) that if there are multiple table entries with the same key value,
then "results are unpredictable".

I don't think this is a case of throwing the baby out with the bathwater - but
rather is a case of avoiding throwing a baby into the middle of an olympic size
pool <G>.

-- 
Bill Klein
 wmklein <at> ix.netcom.com


Relevant Pages

  • Re: 3 fields together unique/no duplicates?
    ... will only allow unique combinations of the three field entries. ... this is an easy way to do it, but not necessarily the best design. ... Ideally, you would use an autonumber PK field in tblPeople, which would make ... > allow duplicates but I need to use 3 fields. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Filter Duplicate Entries
    ... aActivityID ... an individual activity for that Client., allowing no duplicates in the combo ... "Gina Whipp" wrote: ... instead of multiple same entries. ...
    (microsoft.public.access.queries)
  • Re: Inexplicable contact replication .. over 10,000 entries of the same contact and same email addre
    ... On Dec 21, 6:53 pm, Diane Ross ... I have to clue as to what is going on. ... with literally hundreds to thousands of entries of contacts where the ... Duplicates right now are managed though highlighting them and deleting ...
    (microsoft.public.mac.office.entourage)
  • Re: tagging unique items in a list
    ... finding duplicate entries, but only those entries that are duplicate for the ... In your examples that's 17 characters. ... entries that are found to be duplicates. ... So when I've tried using Advanced Filter, the two that look exactly the ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Inexplicable contact replication .. over 10,000 entries of the same contact and same email addr
    ... AFAIK this is the first report of anything ... How are you managing these duplicates? ... Entourage Help Blog ... with literally hundreds to thousands of entries of contacts where the ...
    (microsoft.public.mac.office.entourage)