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 » Defining BAI 88 Record(Continuation) using DFDL

Post new topic  Reply to topic Goto page Previous  1, 2
 Defining BAI 88 Record(Continuation) using DFDL « View previous topic :: View next topic » 
Author Message
mah9960
PostPosted: Tue Jul 04, 2017 11:53 am    Post subject: Reply with quote

Newbie

Joined: 17 Jun 2017
Posts: 3

Thanks for your quick reply..
Input Message part
Code:


16,195,000000000000100,0,160916500001,144720/
88,Sending Bank: 022000046  M AND T BANK - Sending Bank Reference:
88,160922000029000 - Receiving Bank: 111000753  BENEF BANK - Beneficiary:
88,ACCT-7001094700, ANDREA contact admin, WEST NORTHWEST HIGHWAY, DALLAS, TX, 75225 -
88,Originator: ACCT-*****2000, WILMINGTON TRUST,
88,1100 NORTH MARKET STREET WILMINGTON, DE 19801 - Amount: $30,000.00 -
88,Acceptance Timestamp: 09/22/2016 07:56 - OMAD Fields:
88,20160922K1QX112C00000109220801FT01 - IMAD: 20160922B2Q8921C000004 -
88,Business Function Code: CTP/


XSD Code Snippet
Code:


 <xsd:element dfdl:emptyValueDelimiterPolicy="none" dfdl:initiator="16," dfdl:terminator="/%CR;%LF;" ibmSchExtn:docRoot="true" name="TransactionDetailRecord">
              <xsd:complexType>
                  <xsd:sequence dfdl:initiator="" dfdl:separatorPolicy="suppressedAtEndLax" dfdl:terminator="">
               <xsd:element  name="BAITypeRecord" type="xsd:string"/>
                    <xsd:element  dfdl:textNumberJustification="right" dfdl:textNumberPadCharacter="0" dfdl:textNumberPattern="#######" dfdl:textNumberRep="standard" dfdl:textOutputMinLength="14" dfdl:textPadKind="none" dfdl:textStandardBase="10" name="Amount" type="xsd:integer"/>
                    <xsd:element  name="FundType" type="xsd:string"/>
                    <xsd:element  name="MNTransactionSequenceNumber" type="xsd:string"/>
                    <xsd:element  name="BankReference" type="xsd:string"/>
               
                  </xsd:sequence>
              </xsd:complexType>
   </xsd:element>
   <xsd:element dfdl:emptyValueDelimiterPolicy="none" name="ContinuationRecord" dfdl:initiator="88," dfdl:terminator="">
       <xsd:complexType>
            <xsd:sequence  dfdl:separatorPolicy="suppressedAtEndLax" dfdl:terminator="%CR;%LF;">
                 <xsd:element dfdl:emptyValueDelimiterPolicy="none" dfdl:nilValueDelimiterPolicy="none" dfdl:terminator="%CR;%LF;" dfdl:occursCountKind="implicit" minOccurs="0" maxOccurs="unbounded"  name="Record88" type="xsd:string"/>
                     
            </xsd:sequence>
         </xsd:complexType>
     </xsd:element>

<xsd:complexType>
                                          <xsd:sequence dfdl:separator="">
                                             <xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded"  minOccurs="1" ref="ns0:TransactionDetailRecord"/>
                                              <xsd:element dfdl:lengthKind="delimited" dfdl:occursCountKind="implicit" maxOccurs="unbounded" minOccurs="0" name="TransDets">
                                                 <xsd:complexType>
                                                   <xsd:sequence dfdl:separator="">
                                                      <xsd:element dfdl:lengthKind="implicit" dfdl:occursCountKind="implicit" maxOccurs="unbounded"  minOccurs="1" ref="ns0:ContinuationRecord"/>
                                                  </xsd:sequence>
                                                 </xsd:complexType>
                                               </xsd:element> 
                                         </xsd:sequence>
                                        </xsd:complexType>



DFDL Trace:

Jul 5, 2017, 12:54:16 PM info: Offset: 238. Optional element 'Record88' encountered. The DFDL parser will return to this position if the element is not present in the data stream.
[dfdl = /BAI2_MessageRef_Lib/bai2_file.xsd, scd = #xmlns(p="dev:bai2")xscd(/schemaElement::p:ContinuationRecord/type::0/model::sequence/schemaElement::Record88), 156]

Jul 5, 2017, 12:54:16 PM error: CTDP3058E: Separator ',' not found at offset '238' for sequence within element '/BAI2File[1]/Group[1]/Account[1]/Transactions[1]/TransDets[1]/ContinuationRecord[1]'.
[/quote]


I am considering the entire 88 record into one element only and it has to have 16 record's delimiter also, when multiple 16 records occurs means it's failing as it's searching for trailer of the group but not the multiple 16 records.
please help me how multiple 16 records will accept.
Back to top
View user's profile Send private message
Shivam112233
PostPosted: Thu May 04, 2023 7:26 am    Post subject: BAI2 format parsing with dfdl Reply with quote

Newbie

Joined: 15 Nov 2021
Posts: 2

@mah9960

did you got the way out for this . BAI2 parsing using dfdl?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Defining BAI 88 Record(Continuation) using DFDL
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.