|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQINput node query |
« View previous topic :: View next topic » |
Author |
Message
|
MrSmith |
Posted: Wed Sep 08, 2010 2:29 am Post subject: MQINput node query |
|
|
 Master
Joined: 20 Mar 2008 Posts: 215
|
Haveing read the help for MQInput node on conversion I am coming across the problem of ciontuinuing parsing errors.
scenario - flow 1 has MQInput node set with XML parser (yes I know its supposed to be XMLNSC, had that battle with client and lost until they upgrade apparently so......) get EBCDIC message from iSeries machine CCSID 037 in MQMD and parser fails on reference to an element in the tree becasue the parser has errored unable to parse message. Created seperate flow where input node is BLOB parse and then parse message to XML in compute node using ESQL works fine as knew it would, so went back to MQInput node and set convert checkbox, which according to the help also says if i dont state a value in the CCSID and Encoding boxes it gets it from the MQMD, happy days i thought, but it puts back the default 1208 UTF CCSID (which I believe is the internal CCSID for the tree anyway) into the CCSID value and still fails to parse.
When it says no value I assumed to mean you blank it out as in backspacwe the values whichever and have even tried 0 in each entry on the basis that maybe zero defines no value but still fails the parse. If however i hard cosde the CCSID it works fine as i would expect
Problem is I have no control over the incoming CCSID so can not really default the MQInput node value to 037 in case it isnt for other messages to this flow so want to force the inoput node to get the values for both encoding and CCSID from the MQMD as it says on the tin.
anybody got suggestions or experienced the same or am i missing something here
Version 6 CSD03 on solaris (again dont ask - words like HEAD, WALL, BEATING spring to mind)
TIA |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 08, 2010 11:46 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Ok,
Do not click the convert chekbox on the MQInput node. Let the broker retrieve the message as RAW and convert internally.
However if you are parsing and I am thinking here about CWF not XML be aware, if your input can span multiple CCSIDs, of the implication for char fields of x bytes vs x chars, especially if you mix ccsid 1208 with single byte CCSIDs like 500 or 037....
Otherwise the best course would be to let the broker handle any conversions.
Also make sure the sending qmgr sets the right ccsid on the message.
If you get a message with ccsid 1208 but the content is in ccsid 037 there is nothing you can do. This is the responsibility of the sender.
Have fun  _________________ MQ & Broker admin |
|
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
|
|
|
|