For Programmers: Free Programming Magazines  


Home > Archive > Cobol > December 2005 > Discrepancy in the START statement?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Discrepancy in the START statement?
Rick Smith

2005-12-14, 6:55 pm

FDIS 2002, 14.8.37.3 General rules (START statement),
"RELATIVE FILES
8) If the KEY phrase is omitted, the START statement
behaves as though KEY IS EQUAL TO data-name-1
had been specified, where data-name-1 is the name of
the key specified in the RELATIVE KEY clause
associated with file-name-1.

9) The type of comparison specified by the relational
operator in the KEY phrase occurs between a key
associated with a record in the file referenced by
file-name-1 and a data item as specified in general rule 10.
....
10) The comparison described in general rule 9 uses
the data item referenced by the RELATIVE KEY phrase
of the ACCESS MODE clause associated with file-name-1."

GR 8 refers to "the RELATIVE KEY clause"; but
GR 10 refers to "the RELATIVE KEY phrase of the
ACCESS MODE clause".

Nothing in "12.3.4.4 ACCESS MODE clause" refers to
"the RELATIVE KEY phrase". So, it seems to me that
deleting, from GR 10, the text "phrase of the ACCESS
MODE" would remove this discrepancy; if it has not
already been done in the Working Draft for 2008.



Chuck Stevens

2005-12-14, 6:55 pm

Absolutely right; there's no such thing as the "RELATIVE KEY phrase of the
ACCESS MODE clause".

Will be corrected in the working draft, most probably as a "miscellaneous
editorial correction".

It's not certain that it qualifies as a serious enough error to warrant
correcting it through an amendment to the current standard; that possibility
is under discussion.

Thanks for bringing this to my attention!

-Chuck Stevens

"Rick Smith" <ricksmith@mfi.net> wrote in message
news:11q0mv3t7m75lea@corp.supernews.com...
> FDIS 2002, 14.8.37.3 General rules (START statement),
> "RELATIVE FILES
> 8) If the KEY phrase is omitted, the START statement
> behaves as though KEY IS EQUAL TO data-name-1
> had been specified, where data-name-1 is the name of
> the key specified in the RELATIVE KEY clause
> associated with file-name-1.
>
> 9) The type of comparison specified by the relational
> operator in the KEY phrase occurs between a key
> associated with a record in the file referenced by
> file-name-1 and a data item as specified in general rule 10.
> ...
> 10) The comparison described in general rule 9 uses
> the data item referenced by the RELATIVE KEY phrase
> of the ACCESS MODE clause associated with file-name-1."
>
> GR 8 refers to "the RELATIVE KEY clause"; but
> GR 10 refers to "the RELATIVE KEY phrase of the
> ACCESS MODE clause".
>
> Nothing in "12.3.4.4 ACCESS MODE clause" refers to
> "the RELATIVE KEY phrase". So, it seems to me that
> deleting, from GR 10, the text "phrase of the ACCESS
> MODE" would remove this discrepancy; if it has not
> already been done in the Working Draft for 2008.
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com