Author |
Message
|
dk27 |
Posted: Thu Feb 26, 2009 2:24 am Post subject: Conversion in cluster |
|
|
Acolyte
Joined: 28 Apr 2008 Posts: 51
|
We have a svr/requester at the moment between AS400 and Solaris. Conversion is set yes on the channels.
Now we want to add this AS400 QM to cluster and want to set conversion as yes on the clussdr/clusrcvr.
My question is will auto-defined channel will acquire this attribute and will do the EBCDIC to ASCII conversion for us.
Receiving app and sending app do not want to change any code except queue name and bind not fixed parameters at the sender end. So conversion at the get is not possible and this is our requirement and can not be changed.
One more problem is I do not have AS400 QM to test this.
What I did is I created 3 qms on windows say A, B and C and created a cluster with convert set as “yes” on the channels with full repos on A and B. Created a cluster queue say XYZ on A and B
Now when I put an EBCDIC message to XYZ using rfhutil from QM C, I am not getting message converted to ASCII on A and B.
Not sure what is going wronge here, if any one can suggest any other option.. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Feb 26, 2009 2:48 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
if the TO.A cluster receiver channel you created on QMGR A is convert(YES), then the implicit created TO.A cluster sender on QMGR C should have CONVERT(YES) too. Did you create an explicit TO.A Cluster sender on QMGR C with convert(NO) and is this one still active (and not the implicit created one) ?!?.
if you do a "dis CLUSQMGR(A) all" on QMGR C, what is the output?
another possibility is, that do make a mistake during the rfhutil insert so that the message is not being converted _________________ Regards, Butcher |
|
Back to top |
|
 |
dk27 |
Posted: Thu Feb 26, 2009 3:43 am Post subject: |
|
|
Acolyte
Joined: 28 Apr 2008 Posts: 51
|
Thanks
dis CLUSQMGR(A) all
I am getting CONVERT(YES) for qmgr A.
While putting using rfhutil I am setting ccsid to 500 and file I refer to contain EBCDIC data.
Do I need to do any thing else? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Thu Feb 26, 2009 4:33 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
did you set the format field in the header to MQFMT_STRING (MQSTR) ? _________________ Regards, Butcher |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 26, 2009 4:55 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
On the one hand, the app teams are correct that they should not have to change their code because you are changing the messaging infrastructure.
On the other hand, the app teams are doing the wrong thing in the first place. Change the receiving app to specify MQGMO_CONVERT, and DO NOT USE channel conversion. Especially in a cluster. |
|
Back to top |
|
 |
dk27 |
Posted: Thu Feb 26, 2009 6:34 am Post subject: |
|
|
Acolyte
Joined: 28 Apr 2008 Posts: 51
|
Mr Butcher wrote: |
did you set the format field in the header to MQFMT_STRING (MQSTR) ? |
Yes that was the problem. Everything is running fine now. I had to do a refresh cluster as well on PR |
|
Back to top |
|
 |
|