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.
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
Posted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII
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
Posted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII
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
Posted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII
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
Posted: .NET Base Class Library, Converting EBCDIC and Compressed EBCDIC to ASCII
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.