|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
Using BITSTREAM |
View previous topic :: View next topic |
Author |
Message
|
mqbrk_newbie |
Posted: Thu Oct 07, 2004 9:10 am Post subject: Using BITSTREAM |
|
|
 Acolyte
Joined: 13 Sep 2004 Posts: 70
|
hi,
I am using WBIMB5+CSD2 . I have input messages both of XML and copybook definition. That is basically I am using WBIMB for the following conversion.
XML-CWf,
XML-XML,
CWF-XML
What ever the input message that I am getting either XML or copybook definition I need to send those message exactly in the same format for Logging details .I used ASBITSSTREAM function for that writing esql code as follows:
DECLARE cdataChar CHARACTER CAST(ASBITSTREAM(OutputRoot.XML.lgs.tmp) AS CHARACTER CCSID InputRoot.MQMD.CodedCharSetId).
It was working fine and I was getting the message When I deployed on windows Platform. My broker is on Z/OS . When I tried the same thing on Z/OS . It was not working for me . I was getting the some junk input messages like shown below:
<lgs dts="2004-10-07-13.01.45.759?é(ÅʬãËË/ÍÁËžŽÊÁÉÍÁËÈžŽÁ/ÑêÁÉÍÁËÈâ?À`žŽÁ/ÑêÁÉÍÁËÈ(ÁËË/ÅÁžŽì(<ž|ÊÑÅÑ>/%(ÁËË/ÅÁžâÊ?,ÁÊ(ÁËË/ÅÁž]]></lgs>
So I changed my codine like this :
DECLARE cdataChar CHARACTER CAST(ASBITSTREAM(OutputRoot.XML.lgs.tmp) AS CHARACTER CCSID 37)
Now its working fine for Z/OS , but not on windows.
Is there any way that I can see the input message no matter whatever platform I deploy..
Thanks in advance for help... |
|
Back to top |
|
 |
mqsidude |
Posted: Thu Oct 07, 2004 10:31 pm Post subject: |
|
|
 Centurion
Joined: 22 Jan 2004 Posts: 148
|
I would capture the CCSID valus in a variable from the input message MQMD header and use it while casting instead of harding it. This will ensure that the right value is used whatever your platform is. |
|
Back to top |
|
 |
kirani |
Posted: Thu Oct 07, 2004 10:58 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
How are you verifying your output? If you are looking it on the queue then you need to change CCSID and Encoding of the message before you output on queue on the m/f. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
RAJESHRAMAKRISHNAN |
Posted: Mon Oct 11, 2004 2:55 am Post subject: |
|
|
Voyager
Joined: 01 May 2004 Posts: 96
|
I haven't worked on WBIMB5 but have heard that there is something called BAR file. If you use the MQInput node's convert option, I guess this might be of use. |
|
Back to top |
|
 |
kirani |
Posted: Mon Oct 11, 2004 9:48 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Convert option on MQInput node uses MQGMO_CONVERT option on MQGET call. You can convert only plain text messages using this option. You cannot use this if your message contains any binary data, for example, COMP-3, double etc. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
  |
|
Page 1 of 1 |
|
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
|
|
|
|