Author |
Message
|
sweety12 |
Posted: Thu Jul 11, 2013 10:26 am Post subject: How to find MessageSet based on message set id |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
Hi,
can some one please help me
Is there a easy way to find the MessageSet when I know the Message Set id
we had so many messagesets defined I don't want to go through all those individually to check the message set |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 11, 2013 10:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
sweety12 |
Posted: Thu Jul 11, 2013 10:47 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 11, 2013 11:02 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Unfortunately, this version is out of support / end-of-life.
If you have the Msg Set ID, what would you do with it? Aren't you able to bring up the Msg Set Chooser, and select by Msg Set Name ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
sweety12 |
Posted: Thu Jul 11, 2013 11:41 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
Thank you lancelotlinc for the reply
Our flows are developed in this version so we are maintaining in the same version
Can you please let me know how to get the msg set chooser is there any shortcut key
And yes I couldn't guess thename for one message set id only the Id was mentioned inside flow esql code |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jul 12, 2013 12:29 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
IBM has been recommending the use of message set names for a long time now. Message set ids are just not maintainable - as you are finding out.
This is what I would do:
1. Make a list of message set ids and their names. You should be able to do that by looking at the messageset.mset files in your message set projects. I would probably write a script to do that, but it's a one-off task so it could be done manually.
2. Go through all of your message flows and replace ids with names.
I understand that you may not have the resources to do that right now - but it's the correct technical solution, and it might save time in the long run. |
|
Back to top |
|
 |
sweety12 |
Posted: Fri Jul 12, 2013 4:59 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
Thank you kimbert
Is there place where broker keeps msgset names, msg set Id I was not able to find id when I did the workspace file search
Instead of looking each and every mset file |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 12, 2013 5:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Toolkit supplies a search function that will look inside files.
Search Menu -> File.
You can set this to search for anything in your workspace named *.mset and ask it to find the part of the file that contains the message set id.
You can then ask it to show all results, rather than opening each file individually. |
|
Back to top |
|
 |
sweety12 |
Posted: Fri Jul 12, 2013 6:01 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
I did that tool kit file search I couldn't find it when I open the one of the mset file in text editor I couldn't even see the message set Id in there |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jul 12, 2013 6:12 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I'm not 100% sure, but I think it is the attribute 'messageSetId' on the tag 'MRMessageSetID'. Take a look at one of the message set projects, and see whether that attribute value matches up with the ID used in a flow. |
|
Back to top |
|
 |
sweety12 |
Posted: Fri Jul 12, 2013 6:32 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
<?xml version="1.0" encoding="UTF-8"?>
<msgCoreModel:MRMessageSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MSGModel="http://www.ibm.com/msgmodel/2003/MSGModel" xmlns:msgCoreModel="http://www.ibm.com/msgmodel/2003/MSGCoreModel" name="l_TDS_Request_MS" msetVersionNo="" currentMessageSetId="//@MRMessageSetID.0">
<MRMessageSetRep xsi:type="MSGModel:MRTDSMessageSetRep" name="TDS1" centuryWindow="53" timeZoneID="0" allowLenientDateTimes="false" messagingStandard="Unknown" groupIndicator="" groupTerminator="" tagDataSeparator="" decimalPoint="." escapeCharacter="" reservedChars="" outputCompressionTechnique="None" inputCompressionTechnique="None" defaultCCSID="367" booleanTrueRepresentation="1" booleanFalseRepresentation="0" booleanNullRepresentation="0" delimiter="" trimFixLengthString="NoTrim" deriveDefaultLengthFromLogicalType="true">
<tagLength xsi:nil="true"/>
</MRMessageSetRep>
<MRMessageSetID repositoryId="-939177620" messageSetId="1"/>
</msgCoreModel:MRMessageSet>
This is my message set in texteditor and messageSetId="1" is there for all of my messagesets but that is not actual messagesetid it is this MG1A9DG002001 |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 12, 2013 6:49 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Can you otherwise tell from the rest of the flow what the root element of the message being worked with is? |
|
Back to top |
|
 |
sweety12 |
Posted: Fri Jul 12, 2013 7:21 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
It's just simple text with delimiter . how the root element contributes in finding the message set name and id |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 12, 2013 9:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you know the fields in the message, you can compare them with your message sets and make a best guess.
I mean, if the data shows that the root element is ShipmentRecord, then you can be sure that it's not the message set that describes PaymentRecord data... |
|
Back to top |
|
 |
sweety12 |
Posted: Fri Jul 12, 2013 9:44 am Post subject: |
|
|
Newbie
Joined: 29 Apr 2010 Posts: 9
|
Thanks every one I was able to find it messageset name
these are inside the .metadata folder of workspace
this is the folder where contains msg set name and msg set id association in the xml files (workspace location)\.metadata\.plugins\com.ibm.etools.msg.msgmodel.utilities\.project\ |
|
Back to top |
|
 |
|