- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Hitachi Cobol to MF Cobol migration
Operating System - HP-UX
1753505
Members
4912
Online
108794
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 08:30 AM
тАО09-10-2009 08:30 AM
Hitachi Cobol to MF Cobol migration
We are doing migration from Hitachi Cobol to MF-Cobol. We have faced challenges on the behaviour of programs as given below :
1. In Hitachi cobol if you define a sending field as PIC X(6) and receiving field as PIC 9(6)and move operartion is performed from sending to receiving, the value stored in the receiving field is + 0 (a positive sign followed by 5 spaces and a zero).
2. In case of MF-Cobol using the same above operation the value stored in the receiving field is 000000 (6 zeros).
3. We resolved the above issue by changing the receiving field to PIC X(6) instead of PIC 9(6).
If anyone has faced any similar or different challenges would appreciate if you could share it or point me to any location if you are aware of where I can find the info to such issues.
1. In Hitachi cobol if you define a sending field as PIC X(6) and receiving field as PIC 9(6)and move operartion is performed from sending to receiving, the value stored in the receiving field is + 0 (a positive sign followed by 5 spaces and a zero).
2. In case of MF-Cobol using the same above operation the value stored in the receiving field is 000000 (6 zeros).
3. We resolved the above issue by changing the receiving field to PIC X(6) instead of PIC 9(6).
If anyone has faced any similar or different challenges would appreciate if you could share it or point me to any location if you are aware of where I can find the info to such issues.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2009 08:35 AM
тАО09-10-2009 08:35 AM
Re: Hitachi Cobol to MF Cobol migration
Hi Suresh:
A long time ago, I was very familiar with the then Burroughs mainframe COBOL compilers. The ANSI rules and vendor implementations for moving fields and/or groups between different 'picture' definitions would fill a page or more of footnotes in the manuals.
You noted, thatt you, "resolved the above issue by changing the receiving field to PIC X(6) instead of PIC 9(6)."
This is exactly what I would have suggested. Re-definitions ('redefines') were the appropriate way to insure no data manipulation occured.
Regards!
...JRF...
A long time ago, I was very familiar with the then Burroughs mainframe COBOL compilers. The ANSI rules and vendor implementations for moving fields and/or groups between different 'picture' definitions would fill a page or more of footnotes in the manuals.
You noted, thatt you, "resolved the above issue by changing the receiving field to PIC X(6) instead of PIC 9(6)."
This is exactly what I would have suggested. Re-definitions ('redefines') were the appropriate way to insure no data manipulation occured.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2009 04:13 AM
тАО09-11-2009 04:13 AM
Re: Hitachi Cobol to MF Cobol migration
It's been more than a decade since I used COBOL. And then I implemented/supported COBOLII for 14 years.
I think that compiler would move each byte from one to the other and would get various traps and try to fix each digit, if it wasn't numeric.
I think that compiler would move each byte from one to the other and would get various traps and try to fix each digit, if it wasn't numeric.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP