Author |
Message
|
alechko |
Posted: Mon May 08, 2006 12:03 am Post subject: Copy a Message Set |
|
|
Apprentice
Joined: 12 Jan 2005 Posts: 37
|
Hi,
I would like to copy a message set project to a different name without changing the original one. I've tried doing so by just making a copy of the folder, renaming it and adding it to my workspace.
The problem is that the duplicated message set receives the same msgsetid. I've tried editing the .mxsd file manually and give it a different msgsetid but than I received an error message that the file was corrupted.
Does anyone know a simple way to duplicate a message set with a different name and id?
Thanks,
Alik |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon May 08, 2006 1:53 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi alechko,
You cannot do this...the message set id's are meant to be unique and are not generated by users...
You'll simply have to create it newly...
Regards. |
|
Back to top |
|
 |
nathanw |
Posted: Mon May 08, 2006 2:21 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
or possible rather than copying try exporting and importing as I believe it will give it a new id (if memory serves correctly) |
|
Back to top |
|
 |
ma.eyal |
Posted: Mon May 08, 2006 2:30 am Post subject: |
|
|
Novice
Joined: 13 Sep 2005 Posts: 15 Location: Israel
|
Hey Alik
You cannot do this without generation errors
What you can do is to create a new message set based on the old one, which will generate a new one with a copy of the old, with a different message set ID.
You can also export the old message set (not the project) and import it which will change its ID, but the name will be the same.
Good luck
You can contact me if you need help with a more tricky but not working always way. |
|
Back to top |
|
 |
sirsi |
Posted: Mon May 08, 2006 6:31 am Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
i remember changing message set ID ( in mrp file) in WMQI.. and it worked fine
but not a good way to change the ID |
|
Back to top |
|
 |
shalabh1976 |
Posted: Mon May 08, 2006 9:59 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
sirsi,
Changing the ID in the mrp file does not always work. A better way is to use mqsicopymsgset command. _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
sirsi |
Posted: Wed May 10, 2006 7:49 am Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
yes, you are right, thats why i said
Quote: |
but not a good way to change the ID |
|
|
Back to top |
|
 |
|