|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Prob. creating Msg set from test data with unstructd records |
« View previous topic :: View next topic » |
Author |
Message
|
bableshwar81 |
Posted: Mon Nov 24, 2003 10:14 pm Post subject: Prob. creating Msg set from test data with unstructd records |
|
|
Newbie
Joined: 24 Nov 2003 Posts: 4 Location: INDIA
|
hi all,
Can anyone help me out with creation of message set in TDS format.
Here's the details: I have to create the message set using input /output test data.
We have the input structure as records(01,02,03,16,99).
Records 01,99 come at the beginning and at the end respectively. there is no problem with that.
The problem is the repetition of records for 02,03 and 16. these records can occur repetitively
in the order 02 followed by 03 and 03 followed by 16. the main problem is that sometimes records 2,3, or 16
may not be present. What is the structure that we can think for this kind of scenario?
what are the parameters that we may set for this creation?
Can any one help me out in designing this message set.
Here's the sample test data:
03,00557846,GBP,15,000000101312500/
16,399,000000007518000,,,,,015801 20030913/
16,399,000000000769500,,,,,027201 20030913/
16,399,000000007551000,,,,,050001 20030913/
49,0,0,0/
03,00620288,GBP,15,000000066558400/
16,399,000000001107000,,,,,059101 20030906/
16,399,000000004602100,,,,,060001 20030913/
16,399,000000005336800,,,,,060201 20030913/
49,0,0,0/
03,56381008,GBP,15,000000000000000/
02,BOOTSBTC,SECUR,1,030602,0000,GBP,0/
03,00557846,GBP,15,000000111748500/
16,399,000000003469000,,,,,027201 20030913/
16,399,000000001568000,,,,,115001 20030906/
16,399,000000005399000,,,,,115001 20030913/
49,0,0,0/
Yes, unfortunately the records are unstructured, i.e. they can appear in
more or less any order |
|
Back to top |
|
 |
vignesh.gopal |
Posted: Mon Nov 24, 2003 11:12 pm Post subject: TDS |
|
|
Novice
Joined: 23 Dec 2002 Posts: 24
|
Hi,
From my previous experience on working with TDS messages,
Repeatative Types/Elements have to be handled in a different way.
They cannot be put in the same heirachy as the root.
for example:
If I have one header1 record,one header2 record and 10 header3 records.
In this case create a structure which will like this in the message set.
Message Name - Compound type
HEADER1 - compound type
HEADER2 - compound type
REPETATIVE_HEADER3 - compound type and add the HEADER3 under it.
HEADER3 - compound type
Element One - under HEADER3
Element Two - under HEADER3
I imagine from your test data that each of the records are will be uniquely identified by the the values mentioned by u like 02,03,99 etc.
For the compound type created of Message Name type,
In the TDS property,
Set the Data Element Separation to "All Element Delimited" and the Delimiter to "/".
In the REPETATIVE_HEADER3,
For compound type properties:
Set Type COmposition to "Sequence",
Set Type Content to "Closed".
In the TDS Tab,
Set Data Element Separation to "All Element Delimited",
Set Delimiter to ",".
For element of the REPETATIVE_HEADER3,
In conection tab set repeat to "yes".
In the HEADER3,
For compound type properties"
Set Type COmposition to "Ordered Set",
Set Type Content to "Closed".
In the TDS Tab
Set Length Of Tag to "3",
Then Tagged Delimited and the value to be ","
For element of the HEADER3 type,
Set in the Connection TAB,repeat to "No".
In the TDS Tab all should be blank.
For each element inside HEADER3 like Element One etc,
in the TDS Tab,
Set Element Properties Tag to "01," or "02," etc based on the definition of the elements.
Hope this helps.
regards
Vignesh |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 25, 2003 5:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So what you have is a set of Tagged records (with the Tags being "01", "02", etc), where the elements are Delimited by commas.
Some of your records are optional and some are not. Some of your records are repeating, and some are not.
I would set up a message structure like this - 01Record
- OtherRecords
- 99Record
Make OtherRecords have a type composition of "Choice", and create all the records as Tagged Delimited Closed, and set the delimiter to ",". You may also need to set Group Terminators and Repeating Element delimiters.
For your repeating elements, indicate that they can repeat and set the Maximum occurance to however many instances are allowed to occur (or type 9 until you see the 'Accept' button turn grey, and then back up one 9 to get the maximum the system will accept). For your optional elements, set the Minimum occurances to 0. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|