November 13th, 2002, 12:54 PM
C program for unpacking packed data from mainframe (Urgent)
Can someone help me with a C program on Unix(Or with any site where I can get one) to unpack packed data from mainframe.
Please reply ASAP.
November 13th, 2002, 01:14 PM
Any specific reason why this has to be a C program? Why not just use a shell script?
November 13th, 2002, 02:28 PM
Anything is fine shell script, perlscript or a c program.
The data that we are getting in the file from Mainframe contains both character data as well as packed data .
I tried dd if=file1 of= file2 conv=ascii but am not able to get the o/p.
November 13th, 2002, 03:24 PM
November 13th, 2002, 03:55 PM
Its a data file wherein the data format looks like this inside the file
field1,field2,filed3,field4 are character data
packed1,packed2,packed3 are packed binary data from mainframe some COMP3 format and these fields contain the amount.
November 13th, 2002, 04:27 PM
so you are saying that the file is compressed in COMP 3 format?
Do you have a utility that can uncompress this format?
November 13th, 2002, 04:49 PM
No I dont have any utilityto uncompress.
As per my knowledge the file is not compressed in COMP-3 format .
It is the data that is compressed.
And the file contains a mixture of both character data and packed binary data as mentioned in the earlier reply.
November 13th, 2002, 05:18 PM
What are you/they using to create the file with?
November 13th, 2002, 11:42 PM
I am not aware as to what they are using to generate the file.
I tried to get that information but the system which generates the file is mainframe and we have no contact with those guys.
Isn't there any generalized program to unpack the data.
We need this to be done on an urgent basis.
November 14th, 2002, 07:35 AM
I really don't know, especially without knowing what kind of file it is.
You will have to contact the people who produce the file and find out what they use to compress it.
This would be easy enough if it was in tar, zip, bzip2 or any of the other common compression utilities, but I am at a loss as to what kind of file format this is.