Re: Declaration of INDEXED file



"Richard Maher" <maher_rj@xxxxxxxxxxxxxxxxxx> wrote:

>
>PS. I wonder what happens if you don't have an INVALID KEY on a read and
>don't have a DECLARATIVES section for the file?

....or a file status test.

It continues with the next sentence and the contents of the file area
are unpredictable or garbage. If you're using the INTO option, you'll
have the record from the last valid read. .

Scott Peterson

--
If work is so terrific, how come they
have to pay you to do it?

248/619
.



Relevant Pages

  • Re: use of INVALID KEY clause
    ... As far as declaratives go, it seems to me that "good defensive code" ... INVALID KEY recently. ... 'STATUS ' FRDCCRD-STATUS ... MOVE Customer-Code TO Transaction-Key ...
    (comp.lang.cobol)
  • Re: use of INVALID KEY clause
    ... INVALID KEY recently. ... DISPLAY 'CVDTR085-FRDCCRD-FILE START ERROR. ... 'STATUS ' FRDCCRD-STATUS ... Now I do know that the use of DECLARATIVES would solve this, ...
    (comp.lang.cobol)
  • use of INVALID KEY clause
    ... Interesting that Pete mentioned having seen use of INVALID KEY and NOT ... to test out how the INVALID KEY/NOT ... Now I do know that the use of DECLARATIVES would solve this, ... the FRDCCRD-ERROR section. ...
    (comp.lang.cobol)