ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Is there anyway to convert between ASCII & EBCDIC?

Post new topic  Reply to topic Goto page 1, 2  Next
 Is there anyway to convert between ASCII & EBCDIC? « View previous topic :: View next topic » 
Author Message
vandemon
PostPosted: Thu Jun 24, 2010 8:41 pm    Post subject: Is there anyway to convert between ASCII & EBCDIC? Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

Is there anyway to convert between ASCII & EBCDIC using WMQ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 24, 2010 8:56 pm    Post subject: Re: Is there anyway to convert between ASCII & EBCDIC? Reply with quote

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
View user's profile Send private message
vandemon
PostPosted: Thu Jun 24, 2010 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Thu Jun 24, 2010 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
vandemon
PostPosted: Thu Jun 24, 2010 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jun 25, 2010 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Fri Jun 25, 2010 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jun 25, 2010 12:18 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Google is easy to use:

http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27005729

http://www.mqseries.net/phpBB2/viewtopic.php?t=52293&highlight=data+conversion
Back to top
View user's profile Send private message
vandemon
PostPosted: Fri Jun 25, 2010 12:40 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Fri Jun 25, 2010 12:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Fri Jun 25, 2010 12:59 am    Post subject: Reply with quote

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
View user's profile Send private message
vandemon
PostPosted: Fri Jun 25, 2010 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Fri Jun 25, 2010 1:25 am    Post subject: Reply with quote

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
View user's profile Send private message
vandemon
PostPosted: Fri Jun 25, 2010 4:38 am    Post subject: Reply with quote

Apprentice

Joined: 14 Jun 2010
Posts: 32

Okok... Thx for the advise
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Jun 25, 2010 5:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Is there anyway to convert between ASCII & EBCDIC?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.