Re: multiple file reads and sorts

From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 01/09/04


Date: Thu, 08 Jan 2004 23:20:43 GMT

Alternatively, if the logic for YOUR program indicates that having a duplicate
alternate record key is an "application error" - the process it accordingly (as
an error for YOUR program).

-- 
Bill Klein
 wmklein <at> ix.netcom.com
"Richard" <riplin@Azonic.co.nz> wrote in message
news:217e491a.0401081512.429f7a39@posting.google.com...
> ritchie_s01@yahoo.com (ritchie) wrote
>
> > This has proved most helpful in narrowing down the errors.
> > It has also uncovered extra problems, as always!, that i'll need to
> > work on ie: duplicate record key errors - CODE "02...
>
> File status first byte indicates success or failure.  '0' is a sucess.
>
> The 2nd byte gives additional information '2' is duplicate.
>
> I would assume from this that you have an alternate key with
> duplicates allowed and it successfully wrote, or read, a record that
> creates an allowed duplicate key.
>
> When checking file status for success you should never check for '00'
> as there are several success codes that have additional information.


Relevant Pages

  • Re: multiple file reads and sorts
    ... If you are using a file that allows duplicate keys then you may have ... 'application logic' it is entirely related to the I/O operation ... 'Success' for a file operation has no implication ...
    (comp.lang.cobol)
  • Re: multiple file reads and sorts
    ... File status first byte indicates success or failure. ... The 2nd byte gives additional information '2' is duplicate. ... I would assume from this that you have an alternate key with ...
    (comp.lang.cobol)