|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TDS query |
« View previous topic :: View next topic » |
Author |
Message
|
amit_talpade_star |
Posted: Fri Dec 24, 2004 7:08 am Post subject: TDS query |
|
|
Apprentice
Joined: 14 Dec 2004 Posts: 39
|
I have to build a message model with the following pattern
TIF+ABC+ABC MR::1'
FTV+++NH+:12345678901+UA:1111111112'
TKT+6182104576754'
CPN+1'
The first 3 characters on each row are tags. The rest are data elements.
My problem is that there is no group identifier. This group of 4 rows can repeat upto 10 times, but is optional. TIF and FTV must occur in the group and TKT and CPN are optional. Additionally the length of data variables can also vary.
How do I define a message model or group for the same?
Any help would be most appreciated |
|
Back to top |
|
 |
javaforvivek |
Posted: Tue Dec 28, 2004 9:12 pm Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
just one clarification needed:
are the trailing single quotes present in your message?
eg, does your message looks like:
TIF+ABC+ABC MR::1'
or like:
TIF+ABC+ABC MR::1 _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
javaforvivek |
Posted: Tue Dec 28, 2004 10:07 pm Post subject: |
|
|
 Master
Joined: 14 Jun 2002 Posts: 282 Location: Pune,India
|
Just forgot one more thing to ask:
Quote: |
TKT and CPN are optional. |
Whats the rule behind this?
I mean, is it that TKT and CPN both should appear or just any one of them can appear? Do these tags go in pair or separately? _________________ Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth. |
|
Back to top |
|
 |
amit_talpade_star |
Posted: Wed Dec 29, 2004 2:28 am Post subject: |
|
|
Apprentice
Joined: 14 Dec 2004 Posts: 39
|
Dear Vivek,
Thanks. I have managed to get the problem sorted out using a complex type and attaching the four tags mentioned as local elements (child elements) of that complex type, each element being a complex type itself.
Additionally each of the these elements I have treated as a tag.
The problem has been resolved.
Regards,
Amit |
|
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
|
|
|
|