- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unpacking Packed COMP-3/binary data from Mainframe
Operating System - HP-UX
1824976
Members
3392
Online
109678
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
Forums
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
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
тАО11-15-2002 03:08 PM
тАО11-15-2002 03:08 PM
Unpacking Packed COMP-3/binary data from Mainframe
Hi All,
I have a Mainframe file which has the following format
f1f2p1p2f3
where f1,f2,f3 are simple charater data
and p1,p2 are packed data in COMP-3 format
My task is to get this file on Unix and unpack the packed data using any C routine or anything else so that I can create a new file with the character fields remaining as it is and the packed data unpacked to ascii format.
Can anyone help me with this.
Thanks,
Vinayak
I have a Mainframe file which has the following format
f1f2p1p2f3
where f1,f2,f3 are simple charater data
and p1,p2 are packed data in COMP-3 format
My task is to get this file on Unix and unpack the packed data using any C routine or anything else so that I can create a new file with the character fields remaining as it is and the packed data unpacked to ascii format.
Can anyone help me with this.
Thanks,
Vinayak
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 03:33 PM
тАО11-15-2002 03:33 PM
Re: Unpacking Packed COMP-3/binary data from Mainframe
Hi:
I'd unpack the file *on* the mainframe into a new file which is then ftp'd as character data to the Unix server.
If necessary use 'dd' to unblock and convert EBCDIC to ASCII. See the man pages for 'dd' for more information.
Regards!
...JRF...
I'd unpack the file *on* the mainframe into a new file which is then ftp'd as character data to the Unix server.
If necessary use 'dd' to unblock and convert EBCDIC to ASCII. See the man pages for 'dd' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2002 11:48 AM
тАО11-16-2002 11:48 AM
Re: Unpacking Packed COMP-3/binary data from Mainframe
We can't unpack the file on the mainframe side since we dont have a resource to do it. Thats the reason we have to first bring the file on Unix and then unpack the packed comp-3 fields.
Do you know of any routine in C whic will unpack the COMP-3 packed data.
Thanks,
Vinayak
Do you know of any routine in C whic will unpack the COMP-3 packed data.
Thanks,
Vinayak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2002 01:00 PM
тАО11-16-2002 01:00 PM
Re: Unpacking Packed COMP-3/binary data from Mainframe
Hi,
Here is a link to a page that talks about handling COMP3 binary data. The page agrees with what James said, that it is better to try to unpack the field on the mainframe side, but if you can't do that they have some sample Java code to try to unpack a COMP3 field.
http://www.room42.com/store/computer_center/packed_decimal.shtml
Good luck!
JP
Here is a link to a page that talks about handling COMP3 binary data. The page agrees with what James said, that it is better to try to unpack the field on the mainframe side, but if you can't do that they have some sample Java code to try to unpack a COMP3 field.
http://www.room42.com/store/computer_center/packed_decimal.shtml
Good luck!
JP
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP