Converting EBCDIC and Compressed EBCDIC to ASCII  
Author Message
NP Rudra





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

Is there any possible way to convert EBCDIC and Compressed EBCDIC formats from IBM Mainframe to ASCII formats Any algorithm (best case) that can fit my need or recommendation of any tool (worst case) would be really appreciated.

I am trying to badly find a way to convert a whole file(s) in EBCDIC and/or Compresses EBCDIC format into ASCII formats.




.NET Development27  
 
 
nobugz





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

Try using one of the StreamReader constructors that takes an Encoding argument. System.Text.Encoding.GetEncoding(Int32) supports many IBM specific encodings. Code page #37 is an EBCDIC encoding. Check the docs for Encoding.GetEncodings() for a complete list of supported code pages.


 
 
Nave





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

Thanks! I think it works just fine for EBCDIC formats. But also, I am looking for Compressed EBCDIC formats. Most of the files I am working on are in the Compressed EBCDIC formats which we need to convert to ASCII formats.

 
 
nobugz





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

That's awfully obscure, no decent Google hits. Closest thing I got is that it might pack a digit in 4 bits...


 
 
Nave





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

I understand its an exceptional case one would really look for but:
Do you by chance, on the top of your head right now, can think of any tool that might do this work (Compressed EBCDIC to ASCII and vice-versa)
Thanks...



 
 
Nave





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

I found a tool that can do this job for me. Moreover I could not find any method can I do the conversion I need. (Compressed EBCDIC to ASCII and vice-versa)


 
 
William K





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

What tool dod you find to do the conversion I am currently working on the same problem. Any ideas would be helpful.
 
 
Naveen Rudra





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

I used a tool called VEDIT on Level-4. Refer to the link here http://greenviewdata.com/ebcdic/conversionpackages.aspx. We spent like about $1000 for the tool.



 
 
William K





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

I downloaded a component from MS called UnpackDecimal that appears to do the trick. I just started testing it today and it seems to have a problem because Hex 00 00 1D converts to 20201- instead of 00001-

I also found another component built on this called CodePageConvert. I have not yet used either one, but the price was right (free) for feasibility testing.

You can find these and other downloads at http://msdn2.microsoft.com/en-us/sql/aa336314.aspx


 
 
Naveen Rudra





PostPosted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII Top

Did you had a chance to get it work