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 » MQSI - XML messages - Cardinality function

Post new topic  Reply to topic
 MQSI - XML messages - Cardinality function « View previous topic :: View next topic » 
Author Message
mehedi
PostPosted: Fri Aug 08, 2003 12:30 pm    Post subject: MQSI - XML messages - Cardinality function Reply with quote

Centurion

Joined: 11 Nov 2001
Posts: 102
Location: PSTech

The message is below.
Here is the code
Set LoopCountJ = CARDINALITY(InputBody.BREMessage.BREActivity.ResponseArray[I].RuleVarArray[]);
'I' is set to 1.
LoopCountJ evaluates to 2 it should evaluate to 3.
Whats wrong here ?


<BREMessage>
<BREMessageHeader>
<TrackingArray>
<NumberOfElements>6</NumberOfElements>
<CorrelationID>RUEAAAABAASEMgAAAAAAAAAAAAAABAAAAAEAA8ABAAAAAAAAAAAAAAAEQQAAAAEABIQ7AAAAAAAAAABF</CorrelationID>
<TrackingNumber>68688</TrackingNumber>
<WFTRANSID>68687</WFTRANSID>
<BTEAM>C62PROCIBCNATIONALVU</BTEAM>
<ATEAM>eoeprocb6</ATEAM>
<SOURCE>NEW</SOURCE>
</TrackingArray>
</BREMessageHeader>
<BREActivity>
<RuleName>ValidateEOEAddDependent</RuleName>
<ResponseArray>
<NumberOfResponses>3</NumberOfResponses>
<RuleID>576</RuleID>
<RuleType></RuleType>
<RuleLevel>DEPENDENT</RuleLevel>
<RuleVarArray>
<NumberOfElements>5</NumberOfElements>
<RuleVar>MAD_PRIMARY_CARE_PHYSICIAN</RuleVar>
<RuleVar>MPCP_IDENTIFIER</RuleVar>
<RuleVar>6666666</RuleVar>
<RuleVar>MPCP_SEQUENCE_NUMER</RuleVar>
<RuleVar>1</RuleVar>
</RuleVarArray>
<MessageText>576</MessageText>
<RuleID>505</RuleID>
<RuleType></RuleType>
<RuleLevel>DEPENDENT</RuleLevel>
<RuleVarArray>
<NumberOfElements>3</NumberOfElements>
<RuleVar>MAD_INSURED</RuleVar>
<RuleVar>MI_BILLING_DATE</RuleVar>
<RuleVar>2003-08-01</RuleVar>
</RuleVarArray>
<MessageText>505</MessageText>
<RuleID>523</RuleID>
<RuleType></RuleType>
<RuleLevel>DEPENDENT</RuleLevel>
<RuleVarArray>
<NumberOfElements>3</NumberOfElements>
<RuleVar>MAD_EOE_BRE_PROCESS_STAGE</RuleVar>
<RuleVar>MEBP_LETTER_TYPE_GENERATE_CD</RuleVar>
<RuleVar>1</RuleVar>
</RuleVarArray>
<MessageText>523</MessageText>
</ResponseArray>
</BREActivity>
</BREMessage>

Data from debug logs
2003-08-08 13:10:45.073139 2571 UserTrace BIP2540I: Node 'EO.ENROLLMENT.REPLY.FROM.BRE.DEVPC.UPDATE.LETTER.GENERATE': Finished evaluating expression 'CARDINALITY(InputBody.BREMessage.BREActivity.ResponseArray[I].RuleVarArray[ ])' at (51, 1. The result was '2'.
_________________
Thanks

Mehedi Hashir
mhashir@hotmail.com
Back to top
View user's profile Send private message MSN Messenger
Craig B
PostPosted: Wed Aug 13, 2003 7:09 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

What Version and CSD level of WMQI are you using? I tried your line of ESQL and input message on WMQI V2.1 CSD05 and the CARDINALITY function gave the correct result of 3.
_________________
Regards
Craig
Back to top
View user's profile Send private message
mehedi
PostPosted: Thu Aug 14, 2003 3:40 am    Post subject: Reply with quote

Centurion

Joined: 11 Nov 2001
Posts: 102
Location: PSTech

Craig,
Thanks i was using the wrong message to test.Something about it being a Monday morning.
Bye

Mehedi
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » MQSI - XML messages - Cardinality function
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.