Posted: Tue Aug 20, 2002 2:07 am Post subject: NEON reformatting
Knight
Joined: 04 Apr 2002 Posts: 560 Location: Scotland
Hi,
Very specific question I'm afraid. I am limited to using NEONRules node (i.e v1.1 functionality) in 2.0.2 and want to convert the input message:
TypeX 11111 aaa TypeY 22222 bbb Type Z 33333 ccc
to output message:
11111 22222 33333 aaa bbb ccc
There are always 3 types in the input but the problem is that they will not always be in the same order but the output needs them in a fixed order. TypeX, Y, Z.
I have tried various combinations of repeating and controlling fields with no success. I am using the TypeX as the controlling filed with an Input Control like 'input filed value = TypeX'.
Any pointers from NEON gurus?
Thanks,
Vicky
don't have access to NEON at moment, however I think there is an option to use tagged data... this may be of some use.
If this is no good and the 9 components are all fixed length you could create an output format for each of the 6 possible permutation of fields and use the rules to determine which format/transformation to perform. Once you've defined all the components it shouldn't be too lengthy a process to build...
Joined: 08 Aug 2002 Posts: 41 Location: Melbourne, Australia
I know this might be a little late but here goes anyway
Create a Input Compound IN_Message
Create a seperate Input Flat for each Type eg
TypeX
TypeY
TYpeZ
So your Input Compound will look like this
IN_Message
TypeX
TypeY
TypeZ
On the properties of IN_Message the component format Order must be RANDOM
This will allow the order of the input message to be random
then you just create you OUT_Message in the correct order.
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