While what you say is true Ze'ev it may not be relevant to Pankaj's problem if he is dealing with MQ Series data that is encode in IBM CP 1047 which maps bijectively into ISO 8859-1. See the slightly out of date document on EBCDIC at:
http://pvhp.best.vwh.net/os390/doc/perlebcdic.html There are some CPAN modules listed at the page at: http://pvhp.best.vwh.net/ One can also try going to http://search.cpan.org/ and searching for Modules or Distributions that contain the word "EBCDIC". Good luck. Peter Prymmer "Zeev Atlas" <z.atlas@veri To: <[EMAIL PROTECTED]> zon.net> cc: 12/05/2001 Subject: Re: URGENT : Perl + EBCDIC + ASCII 10:25 PM I wrote a little utility in Perl (on Windoz) that deal with fixed length text file (the usual MVS type of file, 80 bytes and all...) to convert from EBCDIC to ASDCII, add CRLF, etc. It is pretty easy with conversion table. Here is the real problem: if you need to do basic EBCDIC, there are plenty of empty spots to stuck in the unparalleled (in ASCII) but possible (according to the green [I am dating myself] Card) EBCDIC combinations. However, if you need a more complete character set, things get ugly pretty quickly. There are more than one official definitions of "extended" EBCDIC (according to the yellow card and later) and there are many local defintions you've never heared about. and worse, you do not have enough empty spots anymore. It is especially bad when you need to deal with x'00', CR, LF, NewLine and other similar stuff back and forth. I had to develope my private system of escape sequences. If you are interesrted in my experience, write to me at [EMAIL PROTECTED] and I'll see what I can do for you. (I am not sure what is the legalk status of my work, but I'll ask) Ze'ev Atlas ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 3:52 PM Subject: URGENT : Perl + EBCDIC + ASCII > > Hi All, > > How do i take care of converting ecdic character set to ascii, while > reading the file from MQ Server using a C++ written MQ Api client. > > Plz reply at this email id ASAP. > > > Many thanks ! > Peace, > Pankaj Nagpal > x72433 > > Work : (+44) 20 - 7567 2433 > Mobile : (+44) 07979705391 > Email : [EMAIL PROTECTED] > > > Visit our website at http://www.ubswarburg.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or error-free > as information could be intercepted, corrupted, lost, destroyed, > arrive late or incomplete, or contain viruses. The sender therefore > does not accept liability for any errors or omissions in the contents > of this message which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. >
