Re: START KEY EQUAL TO
- From: docdwarf@xxxxxxxxx
- Date: 28 Jun 2005 14:49:44 -0400
In article <d9s568$22n1$1@xxxxxxxxxxxxxxxxxxxx>,
Chuck Stevens <charles.stevens@xxxxxxxxxx> wrote:
>
><docdwarf@xxxxxxxxx> wrote in message news:d9s49n$mv6$1@xxxxxxxxxxxxxxxxxxx
>
>> ... then unless you have a record on the file with the key of 'ABCDE '
>> (five trailing spaces) my experience tells me that you will get a 23.
>
>That may be what actually does happen, but unless I misread the wording in
>the COBOL standards, I don't think that's supposed to be what happens.
>
>'74/'85 both say that if the operands are unequal size, comparison proceeds
>as though the longer one was truncated on the right such that its length is
>equal to that of the shorter (START general rule 4).
The operand was equal to itsself, no? KEY = PRIMARY-KEY was what I coded.
[snip]
>Have I misread something? Have I missed something entirely?
Perhaps I should have included a SELECT specifying KEY IS PRIMARY-KEY.
DD
.
- Follow-Ups:
- Re: START KEY EQUAL TO
- From: Chuck Stevens
- Re: START KEY EQUAL TO
- References:
- START KEY EQUAL TO
- From: cblkid
- Re: START KEY EQUAL TO
- From: cblkid
- Re: START KEY EQUAL TO
- From: docdwarf
- Re: START KEY EQUAL TO
- From: Chuck Stevens
- START KEY EQUAL TO
- Prev by Date: Re: START KEY EQUAL TO
- Next by Date: Re: START KEY EQUAL TO
- Previous by thread: Re: START KEY EQUAL TO
- Next by thread: Re: START KEY EQUAL TO
- Index(es):