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 » Data conversion

Post new topic  Reply to topic
 Data conversion « View previous topic :: View next topic » 
Author Message
Radhika1114
PostPosted: Thu Nov 20, 2003 2:50 pm    Post subject: Data conversion Reply with quote

Novice

Joined: 23 Aug 2003
Posts: 21

Hello,

I am getting a message from a legacy system in EBCIDIC form.Is it necessary to convert it to ASCII format so that the recieving side system understands it. If so where and how is the conversion to ASCII is done.
Is it in the sender channel definition i have to mention to convert??

Thanks
Radhika
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Nov 20, 2003 3:02 pm    Post subject: Reply with quote

Jedi

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

The 'usual' way if for the application retrieving the message to do a GET with Convert. You can convert in the channel, but that is usually only used when the receiving application cannot do the conversion.

MQ will only convert the message if the format is MQSTR, in which case, the complete message must only contain 'printable' characters. If the message contains any other kind of data, binary, packed decimal, etc., then you will have to write a conversion exit to allow MQ to do the conversion.

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
Radhika1114
PostPosted: Fri Nov 21, 2003 5:48 am    Post subject: hi Reply with quote

Novice

Joined: 23 Aug 2003
Posts: 21

Hi ,

Can i set the Data conversion option in the sender channel to YES. Will this solve the EBCIDIC to ASCII conversion issue.? Otherwise where is the MQGET program located on the QMANAGER structure.I am new to MQ but have to do some problem solving here.

Thanks
Radhika
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Nov 21, 2003 8:59 am    Post subject: Reply with quote

Jedi

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

As I said before, yes you CAN convert in the channel, but this is not the 'usual' way.

The 'MQGET program' is your application that is GETting the message.

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
Radhika1114
PostPosted: Sun Nov 23, 2003 1:50 pm    Post subject: hi Reply with quote

Novice

Joined: 23 Aug 2003
Posts: 21

Hi,

We havent configured any MQGET program. Can you tell me where can i find the MQGET program in the installation.I mean which directory in the AIX system

Thanks
Radhika
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Nov 23, 2003 2:13 pm    Post subject: Re: hi Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Radhika1114 wrote:
We havent configured any MQGET program. Can you tell me where can i find the MQGET program in the installation.I mean which directory in the AIX system


There is no program called MQGET, unless someone at your company has written one.

There is an MQSeries API call which GETs a message from a queue. That is, there is a statement that a programmer can put in any program that will retrieve a message from a queue. This statement in some program (whatever program happens to include it) has an option that will allow the programmer to retrieve data that has been converted from ASCII to EBCDIC.

Presumably, since you are discussing errors with some program on your system that is getting EBCDIC data that should be in ASCII, then you or some programmer at your company has used this statement in a program that exists somewhere on your system. This programmer can then change this statement to specify the option that will get the data as ASCII instead of as EBCDIC.

But since nobody here wrote this program, then nobody here knows where on your system it exists.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Radhika1114
PostPosted: Mon Nov 24, 2003 7:05 am    Post subject: hi Reply with quote

Novice

Joined: 23 Aug 2003
Posts: 21

'''There is an MQSeries API call which GETs a message from a queue. That is, there is a statement that a programmer can put in any program that will retrieve a message from a queue. This statement in some program (whatever program happens to include it) has an option that will allow the programmer to retrieve data that has been converted from ASCII to EBCDIC. '''


Hi ,
can you let me know how to modify the "MQSeries API call which GETs a message from a queue".

I have been given this poorly maintained system to figureout and fix the problem. MQ was installed on this system few years back. There is no documentation or no one knows how it was setup. I guess there was a small company maintaining the system they didnt do knowledge transfer or didnt let people know about what they were doing.

Now we have all these problems.

Thank you
Radhika
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Nov 24, 2003 7:38 am    Post subject: Re: hi Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Radhika1114 wrote:
can you let me know how to modify the "MQSeries API call which GETs a message from a queue".


Chapter 34 of the Application Programming Reference describes the MQGet call, including all of it's parameters.

You should also read Chapter 10 of the Application Programming Guide which discusses the overall process of Getting a message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Data conversion
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.