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 Discriminator issue

Post new topic  Reply to topic
 DFDL Discriminator issue « View previous topic :: View next topic » 
Author Message
mqbrks
PostPosted: Mon Mar 06, 2017 12:49 pm    Post subject: DFDL Discriminator issue Reply with quote

Voyager

Joined: 17 Jan 2012
Posts: 75

Hi ,

I have a file which has one audit record and multiple data records

AUDIT ....1 P .... 89800004
16JAJAK1 P
16JAJAK2 P
16JAJAK3 P
16JAJAK1 P

I am using discriminators to identify data records 11, 12 , 13, 14...
Discriminators are set for first index value ('1'6JAJAK1) and 8th index value (16JAJAK'1'). Similarly for 12, 13,14 and so on.

But facing parsing errors, it recognizes only 11 record, but doesn't skip to search for other records. Throws a error of expression evaluated to false at the 8th index.

Thank you!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Mar 06, 2017 1:06 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

So you have 1 audit record and 1 to indetermined data records.
If you want to determine which type of data records you have you can look and discriminate on xJAJAKyy but you first need to decide if you have a sequence with 0 to n occurrences for each type or a choice...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Mon Mar 06, 2017 3:35 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Please describe the structure of the message tree that you want to obtain. Make sure that you identify items that can repeat.
Code:
make sure that you use code tags
    otherwise your attempt to
    describe the structure
will not be understood
Back to top
View user's profile Send private message
mqbrks
PostPosted: Wed Mar 08, 2017 12:52 pm    Post subject: Reply with quote

Voyager

Joined: 17 Jan 2012
Posts: 75

Thank you fjb_saper and timber!

Currently we are still in discussions of the message structure, once we receive a confirmation ,will repost.

Thanks a lot for your support!
Back to top
View user's profile Send private message
timber
PostPosted: Wed Mar 08, 2017 3:08 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Quote:
Currently we are still in discussions of the message structure
When you design a DFDL model for a data format, you don't get very much choice about the shape of the message tree. The message tree structure follows the DFDL schema structure almost exactly ( if you ignore advanced modelling techniques that use xs:group ).

My point is this; the discussions that you refer to are not really a debate about the alternatives. They are an exercise in discovering what the structure of the data is. If you already know the structure of the data then you don't need a discussion.
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 Discriminator issue
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.