View previous topic :: View next topic |
Author |
Message |
archowdhury Beginner
Joined: 30 Dec 2004 Posts: 4 Topics: 2
|
Posted: Tue Jan 11, 2005 3:20 am Post subject: Sorting problems after migrating to Cobol/370 |
|
|
We were doing a migration from Cobol OS/VS or Cobol II to Cobol 370. For converting the programs we were using IBMs own converting tool (Cobol Conversion Aid). We observed that the only thing the converter was doing was removing the file descriptor entries (like RECORD CONTAINS clause, BLOCK CONTAINS clause etc.). There were no changes to the program code anywhere else.
Almost all the programs converted fine. But we got stuck with a few programs that were using an internal sort within the code. The datasets were variable length. The output datasets showed a lot of differences after conversion. The data was ok with most of them but the sort order was different. We were not able to track down what was causing the problem. Can anyone suggest any possible solution. Thanks. |
|
Back to top |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Tue Jan 11, 2005 5:00 am Post subject: |
|
|
It's a little bit tricky to sort variable length records. The described error occurs for example if the program don't understand that the SD file contains variable length records. But I don't know if the internal sort setup is different in Cobol VS and Cobol/370. The first thing to do in this situation is to read the SORT chapter in the Cobol programming guide. Sorting variable length records have it's one chapter in my manual. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Jan 11, 2005 4:14 pm Post subject: |
|
|
archowdhury,
Please post all your continuation in the old topic itself. I am locking this topic.
Thanks,
Kolusu
Ps: Please do not request help via PM's _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|