View previous topic :: View next topic
|
Author |
Message |
morpheus007
New User
Joined: 27 Dec 2005 Posts: 58
|
|
|
|
We have a requirement to parse an occurs table and compare the values in the table based on a date field.
If we declare the table with descending key on the field being used to compare and the input data is not ordered in descending order of tht field does cobol rearrange data when values are loaded or do we get an error. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
You are responsible for the loading the table in the correct order. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
When you load the table, you will not get an error if the fields are not in correct sequence -- it is up to your program to verify this and take appropriate action.
Furthermore, if the table is not loaded in key sequence, as the manual states, the results of your SEARCH ALL will be unpredictable. |
|
Back to top |
|
|
|