Author |
Message
|
anilmekala |
Posted: Sat Sep 06, 2014 4:11 am Post subject: Need help on TDS mset setting properties for message definit |
|
|
Acolyte
Joined: 19 Oct 2012 Posts: 63
|
Hi All,
In my org we are using WMB7.0 .
I am receiving data from AS400 legacy system with below structure
|HUCA|AS4@BRH|CNT@<huorg>,CNT@<hudst>|five spaces {H12345678++B+BRU+HUB+MNL+HUB+P+1997-02-04 18:04:51\+01:00++MIX+DOX ++MNL-MIX-DOX+10+{}+{9786213213+LHR+MNL}{1212543223+BRU+MNL}}
prototype:
|Message_type|Origin|Destination1,Destination....| fivespaces { Parent HU attributes + 1
{ Child HU attributes }+ 0..n
{ Child Shipment attributes } 0..n
}
I have set properties as below :
ParenetHU Attributes
DataElement separated: Tagdelimited
Group Indigator :{
Group Terminator:}
Delimiter :+
Tag Data Separator :+
ChildHu Attributes
DataElement separated: Tagdelimited
Group Indigator :{
Group Terminator:}
Delimiter :+
Tag Data Separator :+
Child Segment Attributes
DataElement separated: Tagdelimited
Group Indigator :{
Group Terminator:}
Delimiter :+
Tag Data Separator :+
my problem is Child Segment Attributes also parsed into Child Hu Segment Attributes.
Please help me where am gone wrong.
Thanks in Advance.
Anil. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 06, 2014 5:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
what is the discriminator between child HU and Child shipment?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
anilmekala |
Posted: Sat Sep 06, 2014 8:45 am Post subject: |
|
|
Acolyte
Joined: 19 Oct 2012 Posts: 63
|
Hi,
Its "+" only.
Sample example as below :
{HU1234+LHR+SIN+{HU3456+CDG+MNL}+{564233+CDG+MNL}}
...is a different message which contains three elements and two segments. Each of the segments occurs just once. Note that the “+” between the segments identifies them as different segments and not a repetition of the same segment.
{HU1234+LHR+SIN+{HU3456+CDG+MNL}{HU3456+CDG+MNL}{HU3456+CDG+MNL}+{564233+CDG+MNL}{564233+CDG+MNL}} |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 06, 2014 10:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
So now that we've clarified the point how did you model it in DFDL?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
anilmekala |
Posted: Sat Sep 06, 2014 8:40 pm Post subject: |
|
|
Acolyte
Joined: 19 Oct 2012 Posts: 63
|
Hi Grand,
I am using version 7.0 there is no DFDL support. I have define in TDS.
Please help me on how to define tds properties.
Regards,
Anil. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Sep 08, 2014 12:45 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
You need to explain the message structure in more detail. I do not understand what the parsing rules are.
Tip: Using [c o d e] tags will make your posts easier to read. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 08, 2014 4:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I thought his example here was clear
Code: |
{HU1234+LHR+SIN+{HU3456+CDG+MNL}{HU3456+CDG+MNL}{HU3456+CDG+MNL}+{564233+CDG+MNL}{564233+CDG+MNL}} |
however sounds to me like time to upgrade as V7 will be out of support in about 1 year and modelling this would be much easier in DFDL.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|