|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
TDS messageset problem |
« View previous topic :: View next topic » |
Author |
Message
|
GSnyder13 |
Posted: Tue Nov 18, 2008 11:53 am Post subject: TDS messageset problem |
|
|
Novice
Joined: 29 Mar 2005 Posts: 13 Location: United States
|
We are converting to WBIMB 6.1 and found one of our existing 5.0 TDS messageset is not working. We need to have an output message look like this (integers will have no double quotes, chars will have double quotes; the delimiter will be a comma (,)): 9999,"abcd","xyz",
I'm having trouble determining how to tell the messageset what a group is and where it ends. I imported a COBOL copybook to use to create the message definition file and made each char a sublevel of an 05 level group, e.g., 05 PROCUREMENT_GROUP. 10 PROCUREMENT CHAR X(04). Each integer is a 05 level, e.g., 05 ACO_TYPE PIC 9(04).
I thought that by doing this and using the double quote as a group indicator and terminator, that each 10 level would have double quotes, but it didn't work.
Has anyone else had success with this?
Thanks. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Nov 18, 2008 2:12 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I thought that by doing this and using the double quote as a group indicator and terminator, that each 10 level would have double quotes, but it didn't work. |
Sorry - nowhere near enough detail there. These parser problems usually need to be described down to the last detail.
Firstly, you will need to explain what you mean by 'it didn't work'.
You should also provide
- a debug-level user trace. You should already be in the habit of taking a user trace if you are dealing with parsing issues
- Trace node output. If you leave Destination set to 'User Trace' the output will appear in the same file as the user trace which I requested above. |
|
Back to top |
|
 |
GSnyder13 |
Posted: Wed Nov 19, 2008 6:17 am Post subject: |
|
|
Novice
Joined: 29 Mar 2005 Posts: 13 Location: United States
|
OK, perhaps I should rephrase my problem. We need to have, in the output message, character fields within double quotes. Numeric fields have no double quotes. Each data element should be delimited by a comma. It's not that it "didn't work", that was poor wording on my part. I have been unable to determine how to tell the broker to use double quotes for character fields. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Nov 19, 2008 6:45 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Setting the group indicator and group terminator to " should cause some quotes to appear *somewhere* in the output. You have not yet revealed whether that is indeed the case
If you have set those properties in messageSet.mset, then you will get quotes around all fields and structures in the output message at all levels. If you want to limit them to the non-numeric fields then you need make specific changes for each field in your mxsd file(s).
Quote: |
I imported a COBOL copybook to use to create the message definition file and made each char a sublevel of an 05 level group, e.g., 05 PROCUREMENT_GROUP. 10 PROCUREMENT CHAR X(04). Each integer is a 05 level, e.g., 05 ACO_TYPE PIC 9(04). |
Those COBOL groups will become elements in your message definition. I think you need to use proper xml schema groups instead:
Open the mxsd file. For each field which needs quotes around it,
- Right-click its parent complex type and select 'Add Local Group'
- Drag the field into the new group
- set the Group Indicator and Group Terminator on the group |
|
Back to top |
|
 |
GSnyder13 |
Posted: Wed Nov 19, 2008 9:23 am Post subject: |
|
|
Novice
Joined: 29 Mar 2005 Posts: 13 Location: United States
|
Thanks, Kimbert...your suggestions were on point and worked as you said. Your help is greatly appreciated!  |
|
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
|
|
|
|