Re: Read, last record appears twice
From: Michael Mattias (michael.mattias_at_gte.net)
Date: 03/04/04
- Next message: Michael Mattias: "Re: Sort registers"
- Previous message: Sky_Eagle1: "Re: Performance in perform loops"
- In reply to: William M. Klein: "Re: Read, last record appears twice"
- Next in thread: docdwarf_at_panix.com: "Re: Read, last record appears twice"
- Reply: docdwarf_at_panix.com: "Re: Read, last record appears twice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 04 Mar 2004 13:14:04 GMT
"William M. Klein" <wmklein@nospam.netcom.com> wrote in message
news:BCq1c.17520$yZ1.3130@newsread2.news.pas.earthlink.net...
> Michael,
> I know that what you say is NOT true if you use the "SAME RECORD AREA"
clause.
> I am not certain, but I *think* that it may not be true for "normal" OPEN
INPUT
> sequential files. According to the ISO 2002 Standard (and I think this is
the
> same as earlier standards)....
> "Michael Mattias" <michael.mattias@gte.net> wrote in message
> news:Wiq1c.30016$PY.14186@newssvr26.news.prodigy.com...
> > "Julian" <whateveryousend@iwontread.net> wrote in message
> > news:c258tr$375$1@news.brutele.be...
> >
> > Actually, all COBOL and AFAIK any language product will state that the
> > contents of a file buffer are "undefined" if the last READ was not a
valid
> > read; and a READ which results in the AT END condition is not a valid
read.
Published standards and rules aside, I think it totally foolish to rely on
the contents of a file buffer except following a sucessful READ.
Even if "permitted" it is IMO plumb dopey.
MCM
(PS: I like the explanation stating the "area" is available, even if the
contents are not defined.)
- Next message: Michael Mattias: "Re: Sort registers"
- Previous message: Sky_Eagle1: "Re: Performance in perform loops"
- In reply to: William M. Klein: "Re: Read, last record appears twice"
- Next in thread: docdwarf_at_panix.com: "Re: Read, last record appears twice"
- Reply: docdwarf_at_panix.com: "Re: Read, last record appears twice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|