| IBM MAINFRAME HELP FORUMS for COBOL, JCL, CICS, DB2, IMS etc... Help & Support Forums for IBM Mainframe computers Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7, CA-11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, VSAM, ISPF, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
morpheus007
Joined: 27 Dec 2005
Posts: 44
|
| Posted: Tue Jul 01, 2008 5:21 pm Post subject: OCCURS with Descending Key option and order of data entry |
|
|
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
Joined: 19 May 2007
Posts: 983
Location: Virginia, USA
|
| Posted: Tue Jul 01, 2008 5:35 pm Post subject: |
|
|
| You are responsible for the loading the table in the correct order. |
|
| Back to top |
|
Robert Sample
Joined: 06 Jun 2008
Posts: 533
Location: Atlanta, GA
|
| Posted: Tue Jul 01, 2008 6:04 pm Post subject: |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|