Author |
Message
|
Radhika1114 |
Posted: Thu Nov 20, 2003 2:50 pm Post subject: Data conversion |
|
|
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 |
|
 |
EddieA |
Posted: Thu Nov 20, 2003 3:02 pm Post subject: |
|
|
 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 |
|
 |
Radhika1114 |
Posted: Fri Nov 21, 2003 5:48 am Post subject: hi |
|
|
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 |
|
 |
EddieA |
Posted: Fri Nov 21, 2003 8:59 am Post subject: |
|
|
 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 |
|
 |
Radhika1114 |
Posted: Sun Nov 23, 2003 1:50 pm Post subject: hi |
|
|
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 |
|
 |
jefflowrey |
Posted: Sun Nov 23, 2003 2:13 pm Post subject: Re: hi |
|
|
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 |
|
 |
Radhika1114 |
Posted: Mon Nov 24, 2003 7:05 am Post subject: hi |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Nov 24, 2003 7:38 am Post subject: Re: hi |
|
|
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 |
|
 |
|