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 » DFDL: How to parse one element of a choice

Post new topic  Reply to topic
 DFDL: How to parse one element of a choice « View previous topic :: View next topic » 
Author Message
Muhammad Haider
PostPosted: Mon Jul 17, 2017 1:53 am    Post subject: DFDL: How to parse one element of a choice Reply with quote

Apprentice

Joined: 14 Mar 2011
Posts: 43

We have created a Message model (DFDL), using COBOL copybook, and the model holds a Choice of below objects

1. Chc-R (Length of 42)
2. AddChc-R (Length of 100)

A portion of Cobol file is as:

Code:
16 ActRec          Pic 9(03).
               16 Chc                Pic X(10500).
               16 Chc-R    Redefines Chc.
                  20  CusChc Occurs 250 times.
                      25   BinStaCde              PIC 9(05).
                      25   BinStaSev              PIC X(01).
                      25   NibProFlg              PIC X(01).
                      25   NibBlrAccD.
                           27 NibBilAcc           Pic X(32).
                           27 NibBlrIde           Pic X(03).
               16 AddChc-R    Redefines Chc.
                  20 AddCusChc Occurs 105 times.
                      25   Add-BinStaCde          PIC 9(05).
                      25   Add-BinStaSev          PIC X(01).
                      25   Add-NibProFlg          PIC X(01).
                      25   Add-NibBlrAccD.
                           27 Add-NibBilAcc        Pic X(32).
                           27 Add-NibBlrIde       Pic X(03).
                      25   Add-NibBilAli          Pic X(20).
                      25   Add-Rsv1               Pic X(38).       


We need to select one of the above choice which parsing the message, based on a Flag available on the Fix message or now DFDL field. Any hints how this parsing can be achieved using DFDL[/code]
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jul 17, 2017 4:42 am    Post subject: Re: DFDL: How to parse one element of a choice Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Muhammad Haider wrote:
Any hints how this parsing can be achieved using DFDL[/code]


Use a discriminator, as described in the documentation.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » DFDL: How to parse one element of a choice
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.