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 » Variable number of record occurrences in a compound message

Post new topic  Reply to topic
 Variable number of record occurrences in a compound message « View previous topic :: View next topic » 
Author Message
sri_sridhar
PostPosted: Thu Feb 26, 2004 12:51 pm    Post subject: Variable number of record occurrences in a compound message Reply with quote

Newbie

Joined: 11 Oct 2001
Posts: 4

In one big message record we have the following types: FUND_INFORMATION, POLICY_INFORMATION, AGENT_INFORMATION.
The first two contain fields and they repeat a fixed number of times but the AGENT_INFORMATION type (which contains 8 fields) repeats 1 - 99 times. This information may not necessarily repeat 99 times, sometimes it could repeat 5, 10, 15, 30, etc.... times.

I have it coded like this below but all the messages fail.
Any suggestions?


DECLARE looper INTEGER;
SET looper = 1;

WHILE (looper <= CARDINALITY("InputBody"."A170_DETAIL_RECORD_IN"."AGENT_INFORMATION"."INDPDCRRECORD"[ ] )) DO

SET "OutputRoot"."MRM"."A170_DETAIL_RECORD_OUT"."AGENT_INFORMATION"[looper]."INDPDCRRECORD" = 'PDCR';

SET "OutputRoot"."MRM"."A170_DETAIL_RECORD_OUT"."AGENT_INFORMATION"[looper]."PCTCOMMSPLIT" =
"InputBody"."A170_DETAIL_RECORD_IN"."AGENT_INFORMATION"[looper]."PCTCOMMSPLIT";
--
--
--
--
--
--

SET looper = looper + 1;
END WHILE;


The reading of a text element of a message failed because the
message was too short to contain the expected length of text.
Check that the processed message is of the expected format an
d type. If the problem persists please record all the details provided with this error message and c
ontact your IBM support center.
2004-02-25 16:33:56.184804 15 UserTrace BIP2631I: Backed out message being propagated to f
ailure terminal; node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY'.
Node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY' has received a me
ssage which has previously been backed out because of a processing error in the message flow. The M
QMD 'backoutCount' of the message exceeds (or equals) the 'backoutThreshold' defined for the MQSerie
s input queue. The message broker is propagating the message to the failure terminal of the node.
Examine the other messages and the message flow to determine
why the message is being backed out. Correct this situation if possible. Perform any local error r
ecovery processing required.
2004-02-25 16:33:56.185484 15 UserTrace BIP2638I: The MQ output node 'PL_170_OD_WMQI_1.DL.
MQSI.FAILURE' attempted to write a message to the specified queue 'DL.MQSI.FAILURE' connected to que
ue manager ''. The MQCC was 0 and the MQRC was 0.
2004-02-25 16:33:56.185564 15 UserTrace BIP2622I: Message successfully output by MQ output
node 'PL_170_OD_WMQI_1.DL.MQSI.FAILURE' to queue 'DL.MQSI.FAILURE' on queue manager ''.
2004-02-25 16:33:56.185980 15 UserTrace BIP2632I: Message received and propagated to 'out'
terminal of MQ input node node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY'.
2004-02-25 16:33:56.186112 15 UserTrace BIP6060I: Parser type 'Properties' created on beha
lf of node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY' to handle portion of incoming message of length 0
bytes beginning at offset '0'.
2004-02-25 16:33:56.186412 15 UserTrace BIP6061I: Parser type 'MQMD' created on behalf of
node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY' to handle portion of incoming message of length '364' by
tes beginning at offset '0'. Parser type selected based on value 'MQHMD' from previous parser.
2004-02-25 16:33:56.186564 15 UserTrace BIP6061I: Parser type 'BLOB' created on behalf of
node 'PL_170_OD_WMQI_1.SPL.DLNK.170.NEWWAY' to handle portion of incoming message of length '4979' b
ytes beginning at offset '364'. Parser type selected based on value 'NONE' from previous parser.


Last edited by sri_sridhar on Thu Feb 26, 2004 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lisa
PostPosted: Thu Feb 26, 2004 1:01 pm    Post subject: Fail Reply with quote

Master

Joined: 07 Jun 2002
Posts: 287
Location: NJ

Hi,
Can you help us out a little? Please post the error message(s)?
Back to top
View user's profile Send private message Send e-mail
Missam
PostPosted: Thu Feb 26, 2004 1:56 pm    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Can u tell more about your MRM structure whether it is FixedLength or Tagged Delimited.Can u Post the error why MRM is failing to Contruct OutputTree
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Variable number of record occurrences in a compound message
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.