|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TDS problems |
« View previous topic :: View next topic » |
Author |
Message
|
Gralgrathor |
Posted: Fri Sep 24, 2010 4:54 am Post subject: TDS problems |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
kimbert wrote: |
Ah! So you did not model the padding characters. That's why the 'bitstream is longer than expected'. If you can do it, the simplest solution is to read the message as a BLOB and remove the trailing padding characters using SUBSTRING. Then re-parse the trimmed message using the TDS parser.
This will only work if you can be sure that all trailing spaces are padding. Otherwise you might truncate a fixed-length field at the end of your message. |
[moderator] split from http://www.mqseries.net/phpBB2/viewtopic.php?t=29550 [/moderator]
4 Years ago? I'll try anyway.
I am having a similar problem: the CICS application writes messages into a predefined buffer of predetermined length, and the broker parser chokes on the extra buffer space.
Since the message contains COBOL "OCCURS... DEPENDING ON..." structures, the length of the data cannot be known up front.
The last field of any message can contain bytes that are identical to the empty buffer bytes at the end of the message, so I cannot simply truncate empty bytes of the end of the message using string manipulation.
What amuses me is that at the point the parser fails, there is already a fully parsed message in the Root, but there's no way to access this data because of the exception.
Anybody got any ideas? |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Sep 24, 2010 6:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As you are having a COBOL copy book, have you tried ingesting it with the corresponding wizard and using CWF. If the depending on is correctly placed there should be no problems...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Gralgrathor |
Posted: Fri Sep 24, 2010 7:01 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
fjb_saper wrote: |
As you are having a COBOL copy book, have you tried ingesting it with the corresponding wizard and using CWF. If the depending on is correctly placed there should be no problems...  |
Hi, thanks for the response. (And thanks, the moderator, for the heads up).
If nobody minds, I think we should continue the discussion here, since I've just received an intriguing response that might prove helpful...
http://www.mqseries.net/phpBB2/viewtopic.php?p=287289#287289 |
|
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
|
|
|
|