Re: Cobol internal SORT causes changes in fields




<ddd.best@xxxxxxxxx> wrote in message
news:1143443784.249710.19740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Andreas & Richard.
At the end we added another field to our key so it'll be unique and
this solved the problem.
Thanks for your response.

Don't know what others think, but I was stunned by this.

The problem is caused by the sort definition not matching the data. In fact,
the data is seven bytes shorter than the definition, so it is way out, and
it is not defined as variable length. You don't need to be Einstein to see
that this record definition needs review.

Instead of fixing the definition (as Richard suggested), make the key
unique, so the problem will go away?!

This is a "Don't raise the bridge, lower the river..." approach to problem
solving, if ever I saw one :-)

The only thing I could give points for here was the honesty in responding
with what they actually did.

Pete.





.