Re: Declaration of INDEXED file



"Richard" <riplin@xxxxxxxxxxxx> wrote:

>Technically that is incorrect. 'next sentence' has a specific meaning
>being the point following the next full stop. You meant 'next
>statement'.
>

....or if you want to be really technical, next imperative statement,
although I think my meaning was clear.

>
>For example with no INVALID KEY and no USE a failing READ may just set
>an appropriate file status. If there is also no file status then it is
>likely that the program will stop with an error message.

At least in the IBM COBOL's I've worked on, it's not likely at all.
The IBM language reference for enterprise COBOL says it's permissible
to omit both the INVALID KEY and ERROR/EXCEPTION procedure. As you
say, this is probably an extension to the standard to remain
consistent with older IBM compilers.

In any case, it's the programmers responsibility to determine that the
file operation was successful and take appropriate action. If they
don't, it's the old "results are unpredictable". I would assume that
the program would simply continue.



Scott Peterson

--
It may be that your sole purpose in
this life is simply to serve as a
warning to others.

194/619
.



Relevant Pages

  • Re: Common ancestor between man and ape
    ... English language here in North America and the next day they all started ... to use it in a decidedly non-temperature related meaning? ... recorded in several large dictionaries of merit. ... You are incorrect. ...
    (talk.origins)
  • Re: Blockbuster picks Blu-Ray - questions
    ... That sentence, as written, is incorrect, regardless of what the "meaning" ... preferred context as the "authoritative" one. ... Trotsky, if I remember correctly, cited no real world usage, just some ...
    (rec.arts.movies.current-films)
  • Re: Blockbuster picks Blu-Ray - questions
    ... grammar and spelling that determine whether a sentence is correct or not. ... That sentence, as written, is incorrect, regardless of what the "meaning" ...
    (rec.arts.movies.current-films)
  • Re: Blockbuster picks Blu-Ray - questions
    ... That sentence, as written, is incorrect, regardless of what the "meaning" ... and trotsky provided none either. ... But even if some reader found *two* legitimate interpretations for ...
    (rec.arts.movies.current-films)
  • Re: OT - I love how the right is spining: no "underlying crime" was committed
    ... >I wasn't going to rub your nose in any more of Franken bullshit ... Our statements did not have the same meaning. ... You were incorrect & ...
    (alt.guitar.amps)