ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TDS problems

Post new topic  Reply to topic
 TDS problems « View previous topic :: View next topic » 
Author Message
Gralgrathor
PostPosted: Fri Sep 24, 2010 4:54 am    Post subject: TDS problems Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Sep 24, 2010 6:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Gralgrathor
PostPosted: Fri Sep 24, 2010 7:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » TDS problems
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.