MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting problems after migrating to Cobol/370

 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
archowdhury
Beginner


Joined: 30 Dec 2004
Posts: 4
Topics: 2

PostPosted: Tue Jan 11, 2005 3:20 am    Post subject: Sorting problems after migrating to Cobol/370 Reply with quote

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
View user's profile Send private message
powerhawk
Beginner


Joined: 08 Nov 2004
Posts: 28
Topics: 4
Location: Stockholm

PostPosted: Tue Jan 11, 2005 5:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Jan 11, 2005 4:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group