Author |
Message
|
Takidoso |
Posted: Wed Apr 16, 2008 3:30 am Post subject: transfering messages without any conversion |
|
|
Novice
Joined: 08 Mar 2007 Posts: 19 Location: Germany
|
Hi,
I am pretty new to MQ-Series and have a certain problem with an existing little client application.
certain messages are to be received from a flat file and put through the MQ System. The MQ-System is on a IBM Host, that is configured with code page 273. The Application risides on a Unix OS (language Java) the Datafile is supposed to be transfered without any conversion.
What do I need to do? I am not quite familiar with the the API and I cannot find hints in the documents I found in the Internet, neither I have the time to read them all.
Could someone give me hints about that matter or even has a piece of code that demonstrates how it is to be done?
thanks a lot in advance and best regards
Takidoso |
|
Back to top |
|
 |
zpat |
Posted: Wed Apr 16, 2008 4:06 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
OK so you read the file on UNIX, and send to the IBM host (or is it the other way around)?
What codepage is the file in? |
|
Back to top |
|
 |
AkankshA |
Posted: Wed Apr 16, 2008 4:08 am Post subject: Re: transfering messages without any conversion |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Quote: |
I am pretty new to MQ-Series and have a certain problem with an existing little client application.
certain messages are to be received from a flat file and put through the MQ System. The MQ-System is on a IBM Host, that is configured with code page 273. The Application risides on a Unix OS (language Java) the Datafile is supposed to be transfered without any conversion. |
i hope you mean code page conversion
Quote: |
What do I need to do? |
Quote: |
I am not quite familiar with the the API and I cannot find hints in the documents I found in the Internet, |
Quote: |
neither I have the time to read them all. |
we all lack time.. dont we..
Quote: |
Could someone give me hints about that matter or even has a piece of code that demonstrates how it is to be done? |
we may if u intend to sponsor our dinner...
 _________________ Cheers
Last edited by AkankshA on Wed Apr 16, 2008 4:12 am; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 16, 2008 4:08 am Post subject: Re: transfering messages without any conversion |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Takidoso wrote: |
the Datafile is supposed to be transfered without any conversion. |
There are a few posts in here on the subject of file-over-MQ that you might find interesting & useful. The Search Button Is Your Friend.
On your specific issue, remember that the file is sent as a series of messages. Each message should be identified by the putting application as having a format of none; this will prevent conversion by WMQ. There's a constant supplied for the formats, the APG & APR will give you details on that & how to set it.
Your other option is to remove the convert option from the get call, if you have control over the getting application rather than the putting one.
Be aware - If the channel linking them is set to do conversion, then only the first of those options will ever be effective.
I'm interested to learn that a mainframe file can be sent unmodifed to a Unix machine, which can then read it. I would have though both code page & encoding would be different; presumably the reading application is dealing with that?
Happy Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 16, 2008 4:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Really, as long as nobody in the path between the sender and the receiver, including the receiver, ASK for conversion... then no conversion will be done - regardless of the format of the message.
Mainframe sender channels frequently have conversion turned on, to make certain things easier. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Takidoso |
Posted: Wed Apr 16, 2008 4:27 am Post subject: |
|
|
Novice
Joined: 08 Mar 2007 Posts: 19 Location: Germany
|
jefflowrey wrote: |
Really, as long as nobody in the path between the sender and the receiver, including the receiver, ASK for conversion... then no conversion will be done - regardless of the format of the message.
Mainframe sender channels frequently have conversion turned on, to make certain things easier. |
Do I get you right, that there is a kind of "converstion flag" in the settings of Receiver and Putter, and if switched of, no conversion is done at all even though the codepages are might setted differently? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Apr 16, 2008 4:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Takidoso wrote: |
Do I get you right, that there is a kind of "converstion flag" in the settings of Receiver and Putter, and if switched of, no conversion is done at all even though the codepages are might setted differently? |
There are criteria which need to be met (including conversion being requested) before conversion is performed. My post mentions them.
My comment regarding channels is directly relevant to jefflowrey comment about mainframe channels often being set to convert. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Takidoso |
Posted: Wed Apr 16, 2008 5:00 am Post subject: |
|
|
Novice
Joined: 08 Mar 2007 Posts: 19 Location: Germany
|
hmmmm I think I see now a bit clearer, that my problem is not MQ in my particular case.
Our host people said, that they don't do any conversion.
Thanks for your replies I think I need to seek out at another place. |
|
Back to top |
|
 |
|