Author |
Message
|
vandemon |
Posted: Thu Jun 24, 2010 8:41 pm Post subject: Is there anyway to convert between ASCII & EBCDIC? |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Is there anyway to convert between ASCII & EBCDIC using WMQ? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jun 24, 2010 8:56 pm Post subject: Re: Is there anyway to convert between ASCII & EBCDIC? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vandemon wrote: |
Is there anyway to convert between ASCII & EBCDIC using WMQ? |
Yes - use conversion. It's in the infocentre.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vandemon |
Posted: Thu Jun 24, 2010 8:58 pm Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
As far as i noe...
Put option as MQGMO_CONVERT
Pass in the CCSID depends on wat i wan...
I wanted to test it out... But my company do not have any EBCDIC standards machine for me to test... |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Jun 24, 2010 10:23 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
Quote: |
Put option as MQGMO_CONVERT |
as you may think from the GMO (= GetMessageOption) this is not a PUT option.
you should read more carefully the related sections in the manual. if you read properly and understood what you read, then you also know how to create an EBCDIC test message that you then can try to MQGET with the CONVERT option.
Another possibility to convert messages is to perform the conversion on the channel (CONVERT option of the sender channel)., but most people (or MQ administrators) prefer that the convert is done by the application during MQGET (there are pro's and con's for both) _________________ Regards, Butcher |
|
Back to top |
|
 |
vandemon |
Posted: Thu Jun 24, 2010 11:30 pm Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Understood...
Could u give me a guide whether which section of the manual should i concentrate on? |
|
Back to top |
|
 |
zpat |
Posted: Fri Jun 25, 2010 12:14 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There a guide to data conversion in MQ, somewhere on the IBM web.
There are many posts on this forum about data conversion.
When you use support pac MO71 to unload queue message data, you can specify a CCSID to convert to.
You can then reload it to obtain messages in this codepage.
MO71 (as so often) is the answer.
Last edited by zpat on Fri Jun 25, 2010 12:16 am; edited 1 time in total |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri Jun 25, 2010 12:14 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
that ones that deal with data conversion. use the search function in the information center.
reading all for a better overview and knowledge of mq is recommended. search here for a recomended order to read the manuals (this has been asked quite a few times in the past). _________________ Regards, Butcher |
|
Back to top |
|
 |
zpat |
Posted: Fri Jun 25, 2010 12:18 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
vandemon |
Posted: Fri Jun 25, 2010 12:40 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Thanks... Will look into it... I am writing an independent conversion program now as well... |
|
Back to top |
|
 |
exerk |
Posted: Fri Jun 25, 2010 12:44 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
vandemon wrote: |
Thanks... Will look into it... I am writing an independent conversion program now as well... |
A wheel is a wheel, so why do people insist on trying to reinvent it?  _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri Jun 25, 2010 12:59 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
because he knows how to write a conversion, but he does not know how to make MQ convert for him. And he is not reading the manuals. He wants the fish. _________________ Regards, Butcher |
|
Back to top |
|
 |
vandemon |
Posted: Fri Jun 25, 2010 1:16 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Sorry for that.
By the way... Comparing using own program to convert and using WMQ to convert???
Which 1 is better??? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Fri Jun 25, 2010 1:25 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
as exerk already said... why reinvent the wheel? it is already there, use it. no need to write your own. adding an own data conversion program will just add more complexity, and reasons for failure. beside all the work to write, test and miantain it. _________________ Regards, Butcher |
|
Back to top |
|
 |
vandemon |
Posted: Fri Jun 25, 2010 4:38 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Okok... Thx for the advise  |
|
Back to top |
|
 |
bruce2359 |
Posted: Fri Jun 25, 2010 5:11 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
Which 1 is better??? |
What do you mean by 'better'? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|