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 Index » General IBM MQ Support » RFHUTILC saveq

Post new topic  Reply to topic
 RFHUTILC saveq « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Mon Jan 31, 2011 12:53 pm    Post subject: RFHUTILC saveq Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Trying to write a script that would simulate a rfhutilc saveq.

I have a java sample that does MQget but that isn't the same as a save q.

Save q dumps the messages and can be replayed using the load q.

Can someone shed some light on how to go about doing this?
Back to top
View user's profile Send private message Yahoo Messenger
mqjeff
PostPosted: Mon Jan 31, 2011 1:04 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Do an MQGet.

Determine what format you wish to use to write the MQMD out into a file.

Write code to use that format to write the MQMD to a file.

Determine how you are going to handle Message Properties - if you are going to keep them or ignore them.

If you are going to keep them, determine how you are going to write them out to a file.

Write code to write message properties out to a file.

Determine what format you wish to use to to write the remainder of the MQ Message out to a file.

Write code to use that format to write the rest of the MQ message to a file.

Then do another MQGet.

Write code to read all of the data you've just written into a file, and turn it back into an MQ message with an MQMD, message properties, and message data.

Or consider just using rfhutil, MO71 or any number of other tools that already allow you to load and unload queues.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Mon Jan 31, 2011 1:14 pm    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Read about MA0T support pac
Back to top
View user's profile Send private message AIM Address
paustin_ours
PostPosted: Tue Jul 10, 2012 4:08 am    Post subject: Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

Thanks Jeff, As i was posting the question, i realized, i have to do all that and figured it didnt really warrant a post but thanks for the reply.

I am also checking out the MA0T, thanks.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » RFHUTILC saveq
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.