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 » WebSphere Message Broker (ACE) Support » EBCDIC to ASCII

Post new topic  Reply to topic
 EBCDIC to ASCII « View previous topic :: View next topic » 
Author Message
rdx
PostPosted: Fri Dec 09, 2005 8:46 am    Post subject: EBCDIC to ASCII Reply with quote

Novice

Joined: 21 Dec 2004
Posts: 21

Hello Gurus,
How do I get CCSID and Encoding of the local system. The problem that I am facing is that I have an input EBCDIC blob format which needs to be added a few characters and converted to ASCII blob. Even when I change the CCSID to 1208 I do not get it as ascii. Can anybody help me.

Thanks in advance.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Dec 09, 2005 9:45 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
How do I get CCSID and Encoding of the local system

MQCCSI_Q_MGR and MQENC_NATIVE.
Quote:
Even when I change the CCSID to 1208 I do not get it as ascii

That's because it's a BLOB. A BLOB is just a series of bits. The Broker does nothing with them.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
EKhalil
PostPosted: Tue Jul 22, 2008 6:25 am    Post subject: How to get qmgrs encoding ??? Reply with quote

Voyager

Joined: 29 Apr 2003
Posts: 99
Location: Boston, MA

When one displays qmgr via mqsc, CCSID is one of the attributes returned. Is there a WMQ command that would return qmgr's encoding ??? (What is the fastest way of obtaining this value ???)
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Tue Jul 22, 2008 7:18 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You don't convert BLOBs.

If it is an EBCDIC string, with MQMD format MQSTR then it will be converted using MQGET with MQGMO_CONVERT (or the MQINPUT node equivalent) or just let the broker convert it automatically to Unicode.

MQ applications (and this includes broker msg flows) should not care which codepage the message arrives in. Always remember to loose-couple messaging applications.
Back to top
View user's profile Send private message
EKhalil
PostPosted: Tue Jul 22, 2008 7:29 am    Post subject: Qmgr's encoding Reply with quote

Voyager

Joined: 29 Apr 2003
Posts: 99
Location: Boston, MA

But if you are trying to issue PCF commands then encoding is important right ??? If there is a mismatch then you end up with an error indicating to provide correct encoding in MQMD. I know that I can set it to native encoding but was wondering if I can obtain this value via some kind of a lookup trick - if there is any ???
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » EBCDIC to ASCII
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.