|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
This is by far beyond my possibilities!(TDS Repeating) |
« View previous topic :: View next topic » |
Author |
Message
|
lunobili |
Posted: Mon Jul 14, 2003 1:50 am Post subject: This is by far beyond my possibilities!(TDS Repeating) |
|
|
Novice
Joined: 06 Nov 2001 Posts: 17
|
Hi every body I've got exactly this message to parse with TDS
&&MQIV]003]SASD]P001]001]2003-07-09]10:01:27]IF1CLNT100 ]LIMO ] ]SDIIP001K2 ]000000576]000003]A] ] ] ] ] ]
1234567890;1234567;12345;1234567890123456789;1234567;
<EOR>;+;PG;12345 ;1234567;1234567;01;12345678901234567890;1234567890123456789;
01;12345678901234567890;123456789012;
01;12345678901234567890;1234567890123456789;
<EOR>;+;PG;12345 ;1234567;1234567;01;12345678901234567890;12345678901234;
01;12345678901234567890;9012345678901234567890123456789012345678901234567890;
01;12345678901234567890;1234567890123456;<EOR>;
The red and the orange part are headers of fixed length and then I've got a repeating structure within another repeating structure. The outer repeating part is delimited by "<EOR>" while the inner one is represented in green. In the green structure there are three fields repeated a certain number of times. Despite my graphical representation all the fields everywhere are actually of fixed length, but with all these delimiters I don’t think that the length is necessary. I tried creating a compound type for each sub structure but I cannot find a way to use "<EOR>" as the delimiter. Should it be considered as a "Repeating Element Delimiter" or as a "Tagged Fixed Length" with 5 as length or meybe I should youe use Groups?
I’ve been hitting my head for the last five days, but I’m still very far from the solution.
Once again thanks’ to anybody who would be kind enough to help me.
Bye Luca. |
|
Back to top |
|
 |
Craig B |
Posted: Wed Jul 16, 2003 4:45 am Post subject: |
|
|
Partisan
Joined: 18 Jun 2003 Posts: 316 Location: UK
|
Just a couple of quick questions for clarification :
1) Does a semi colon always follow and <EOR> tag?
2) Do you want to see <EOR> as part of the data in the message tree or are you happy for that to be asborbed as part of the mark-up?
3) The four fields in brown after each <EOR> tag (+;PG;12345 ;1234567;1234567), are these always the first four fields and they are always there and are not repeating?
4) You say that there is a repeating group of 3 fields in green and that these fields are fixed length. Yet in the first set of three, the final element is 1234567890123456789 but in the second set the third element in 123456789012. These have different lengths and therefore would suggest that these are not fixed length elements??
5) Is there always a final <EOT>; on the end of the message? _________________ Regards
Craig |
|
Back to top |
|
 |
lunobili |
Posted: Wed Jul 16, 2003 5:04 am Post subject: |
|
|
Novice
Joined: 06 Nov 2001 Posts: 17
|
Hi here are the answers:
1) A semi colon follows all the <EOR> tab but the last one.
2) I do not need to see <EOR> as part of the data in the message tree.
3) Yes, the fields in brown are always the first four fields, they are always there and they don't repeat (in the inner part).
4) Yes, I realize that I said something, but the example shows something different. A further analysis showed that the lengths are NOT fixed. Sorry for the confusion.
5) No, at the end of the message there is a final <EOR> without semi colon.
Meanwhile I went a little bit forward with this problem, although I am still researching I think that a good direction to probe is using group separators and not tag as I initially supposed. Am I right? Any suggestion is welcome.
Thanks' again, Luca. |
|
Back to top |
|
 |
Lisa |
Posted: Wed Jul 16, 2003 6:19 am Post subject: Reapeating |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
Hi,
Are you at CSD level 4? |
|
Back to top |
|
 |
lunobili |
Posted: Wed Jul 16, 2003 6:21 am Post subject: |
|
|
Novice
Joined: 06 Nov 2001 Posts: 17
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|