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 infix, prefix and postfix separators

Post new topic  Reply to topic
 DFDL infix, prefix and postfix separators « View previous topic :: View next topic » 
Author Message
gfrench
PostPosted: Tue Nov 03, 2015 2:05 pm    Post subject: DFDL infix, prefix and postfix separators Reply with quote

Acolyte

Joined: 10 Feb 2002
Posts: 71

Can anyone give me examples of the last two? I got a great examples from maths

Quote:
infix (A * B)+(C/D)
prefix +(*AB)(/CD)
postfix (AB*)(CD/)+


But how does that apply to message structure?

Cheers
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mqjeff
PostPosted: Tue Nov 03, 2015 2:40 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

prefix is an indicator (a tag in MRM terminology).
postfix is also an indicator, possibly a terminator rather than an indicator.

it's really not a significant structural difference - unlike infix. It's really a matter of attributes on the structure holding the items.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
timber
PostPosted: Wed Nov 04, 2015 12:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

'prefix' means 'occurring before'.
'postfix' means 'occurring after'.
'infix' means 'occurring between'.

In mathematics, these terms can be applied to operators like +, -, / and *.
In computer science, they can be applied to delimiters in a data format.

So a prefix delimiter looks like this:
Code:
,one,two,three

an infix delimiter like this:
Code:
one,two,three

and a postfix delimiter like this:
Code:
one,two,three,
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 04, 2015 7:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Dear sir Kimber...

The question was about how to model those in DFDL... I realize that's a complicated subject, and you might struggle with it...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
timber
PostPosted: Wed Nov 04, 2015 8:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Mustering what little dignity remains...

I thought the OP was trying to understand what the terms prefix/postfix/infix mean. They tried Googling/Binging/Yahooing and found a reference to mathematical operators, which probably didn't help much. So I tried to explain how DFDL uses those words.

Your hit. Sir.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 04, 2015 8:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

timber wrote:
Your hit. Sir.




So, these are modelled in DFDL as initiators... ? terminators for infix/postfix?


_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
gfrench
PostPosted: Wed Nov 04, 2015 9:27 am    Post subject: Reply with quote

Acolyte

Joined: 10 Feb 2002
Posts: 71

Thanks.. I think someone had over complicated it. After testing

a,b,c - infix
a,b,c - postfix with trailing suppression
a,b,c,d, - postfix no trailing suppression
,a,b,c - prefix

I wonder if you can have prefix, with first prefix suppression. (No I don't need an answer!)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
timber
PostPosted: Wed Nov 04, 2015 2:13 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
I wonder if you can have prefix, with first prefix suppression. (No I don't need an answer!)
But you're getting one anyway...

No, you cannot. That would be exactly the same as infix.
Delimiter suppression happens in one of two ways:
- the delimiters for all trailing empty elements are suppressed ( trailing means 'after the last mandatory element')
- the delimiters for all empty elements are suppressed

So you can't suppress a particular delimiter. It will be suppressed or not based on whether the corresponding element is empty ( and the delimiter suppression setting ).

btw, this looks wrong:
Quote:
a,b,c - postfix with trailing suppression

if the delimiter for the missing element d was *not* suppressed then it would be
a,b,c,,
So I think it should be
a,b,c,

Pedantic? Probably, but there's enough confusion in this area already, and I don't want to leave inaccurate posts on this forum to muddy the waters.
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 infix, prefix and postfix separators
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.