ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ SupportExport JMS Destinations in "Create Queue" format?

Post new topicReply to topic
Export JMS Destinations in "Create Queue" format? View previous topic :: View next topic
Author Message
omhopper
PostPosted: Wed Jun 26, 2019 1:08 pm Post subject: Export JMS Destinations in "Create Queue" format? Reply with quote

Novice

Joined: 08 Jun 2007
Posts: 17

Is there a way to export all the current JMS destinations for my queue manager into a file that could then be used with the JMSAdmin utility?

Sort of like the dmpmqcfg that exports definitions into a format that can be used with runmqsc to redefine all the objects. I'd like to be able to export all the JMS destinations into a file with the output similar to:

DEF Q(queue:\\QMGR1\QUEUE.A) QUEUE(QUEUE.A) TC(MQ) QMGR(QMGR1)
DEF Q(queue:\\QMGR2\QUEUE.B) QUEUE(QUEUE.B) TC(MQ) QMGR(QMGR2)
END
_________________
Thanks.
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Jun 26, 2019 4:40 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1271
Location: Bay of Plenty, New Zealand

The original versions of what is now dmpmqcfg, were tools that issued DISPLAY commands and got all the parameters back, and then did a search and replace for the keyword "DISPLAY" with the keyword "DEFINE" in order to allow replay. These tools got more sophisticated over time being able to remove things like ALTDATE and ALTTIME from DISPLAY output because those were not valid on DEFINE commands.

I have not tried out the above with JMS Admin, but you could give it a go and see how much tweaking it needs.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Thu Jun 27, 2019 4:45 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20119
Location: LI,NY

hughson wrote:
The original versions of what is now dmpmqcfg, were tools that issued DISPLAY commands and got all the parameters back, and then did a search and replace for the keyword "DISPLAY" with the keyword "DEFINE" in order to allow replay. These tools got more sophisticated over time being able to remove things like ALTDATE and ALTTIME from DISPLAY output because those were not valid on DEFINE commands.

I have not tried out the above with JMS Admin, but you could give it a go and see how much tweaking it needs.

Cheers,
Morag


Excellent advice. I'd look at the output of dis q(*), dis cf(*), qcf(*), xaqcf(*), topid factories etc... Then redirect into a file and edit the file if need be.
Use the file to recreate a context and compare...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
omhopper
PostPosted: Thu Jun 27, 2019 10:04 am Post subject: Reply with quote

Novice

Joined: 08 Jun 2007
Posts: 17

Thank you for the assistance. This is what I've come up with. Pipe the output of the DIS to a file, it ends up looking like this:
Q(QUEUE.A)
CCSID(1208)
DESCRIPTION(This is Queue A)
ENCODING(NATIVE)
EXPIRY(APP)
FAILIFQUIESCE(YES)
MDMSGCTX(DEFAULT)
MDREAD(NO)
MDWRITE(NO) ... and so on.

All I need to do is replace the 'Q(' with 'DEF Q(', then add a Plus sign to the end of each line to get a file I can use to pipe into the JMSAdmin utility. Like so:
DEF Q(QUEUE.A) +
CCSID(1208) +
DESCRIPTION(This is Queue A) +
ENCODING(NATIVE) +
EXPIRY(APP) +
FAILIFQUIESCE(YES) +
MDMSGCTX(DEFAULT) +
MDREAD(NO) +
MDWRITE(NO) + ... and so on until it's the last attribute.

Thanks again.
_________________
Thanks.
Back to top
View user's profile Send private message
hughson
PostPosted: Thu Jun 27, 2019 7:50 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1271
Location: Bay of Plenty, New Zealand

Glad to hear its a workable output.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportExport JMS Destinations in "Create Queue" format?
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.