Author |
Message
|
vk |
Posted: Wed Sep 28, 2005 4:55 pm Post subject: TDS Message Set Issue |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
Hi,
Is it possible in WMQI 2.1 to create a TDS message set of a repeating header - detail format as shown below -
H1 D11 D12 D13 H2 D21 D22 H3 D31 D32 etc
Each header is followed by its associated detail records. All records have the same length. Each record is preceeded by a tag, H for header and D for detail.
I tried creating the following nested structure. But I am not sure what value to give for 'Data Element Separation' for the outermost type.
Msg of type - Msg_Type (????)
Repeat_Element of type - Repeat_Type (Tagged Fixed Length)
Header of type - Hdr_Type (Fixed Length)
Detail of type - Detail_Type (Fixed Length)
Header and Detail elements have tag set to H and D respectively.
Thanks in advance.
Vk. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Sep 28, 2005 8:49 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
I did not understand much from the H's and D's u have provided, but i'm sure you'll need to provide an outer message say 'MainMessage' and then under that provide the types....
Each type say T1, T2 can be a H and its D's...
And define one Type as the contents of these T's....
I hope you understood atleast a 1%...
If you could give us a better idea of what this H and D's are, maybe we could help you better.... |
|
Back to top |
|
 |
kimbert |
Posted: Thu Sep 29, 2005 12:35 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Is it possible in WMQI 2.1 to create a TDS message set of a repeating header - detail format... |
Yes
Almost certainly, but I need to see an example message before I can help any further. |
|
Back to top |
|
 |
vk |
Posted: Thu Sep 29, 2005 5:09 am Post subject: TDS Message Set Issue |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
Hi,
My message is like this -
HDRHeaderDataDTLDetailDataDTLDetailData
HDRHeaderDataDTLDetailDataDTLDetailData .....
HDR and DTL are tags before each header and detail record follwed by the actual record data.
I did the following -
MainMsg of Type Msg_Type (What to give for Data Element Separation?)
-----Repeat_Element of type Repeat_Type (Tagged Fixed Length)
-------------Hdr_Element of type Hdr_Type (Fixed Length)
----------------------Hdr_Field1
----------------------Hdr_Field2
-------------Dtl_Element of type Dtl_Type (Fixed Length)
----------------------Dtl_Field1
----------------------Dtl_Field2
Hope the above structure is understandable.
Please let me know if this will work. The elements Hdr_Element and Dtl_Element have tags set to 'HDR' and 'DTL'. What to give for Data Element Separation for the outermost type on which the message is based?
Thanks again,
Vk. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Sep 29, 2005 5:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I believe you want to use Fixed Length.
Or maybe variable elements delimited. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 30, 2005 1:05 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
For the outermost type, I would recommend
- Data Element Separation of Tagged Fixed Length
- Tag Length of 0
Why not 'Fixed Length'? The TDS parser needs to know that it will encounter tags within the scope of the outermost type - so 'Fixed Length' might not work. 'Fixed length' is intended for structures which only ever contain untagged fixed length data. |
|
Back to top |
|
 |
|