Author |
Message
|
Northsider |
Posted: Fri Sep 15, 2006 8:04 am Post subject: how to put Queue(s) on other Storageclasses (Z/OS) |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
Hi all,
Im looking and trying to understand a good scenario to move Queue's (with messages in them) who are on PSID01, to an other Pageset. (To prevent an application to fully load the systempageset(psid01).
As you cant move queues which have messages inside them I was thinking to stop the Queue Manager, then do a SCOPY (offline extract off the messages to a dataset.) and then Empty the Queue (still offline). However Im incapable of doing an empty of the Queue in batch?.
Still I dont want to start the Queue Manager, then delete all the messages and then do a quick change of storageclass (on an other pageset). It seems to me that when you do a copy (online) of scopy(offline) and then empty/clean the queue, there could be a left persitent message deleted, which is not backupped by te scopy/copy function.
So I hoped if you guys/girls had any ideas how to handle? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Sep 15, 2006 9:24 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Put disable the queue.
SCOPY the messages
Use ISPF the clear the messages
Change the pageset to the one you need.
Restart the queue manager (not sure if you really need to but...)
PUT enable the queue and reload.
Should work I believe. Good luck |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Sep 16, 2006 7:12 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
We just did this a little while ago. QueueA needed to move from Storage Class 1 to Storage Class 2.
Using MO71 is took less than a minute.
Create QueueA.Temp.
Use MO71 to move all the messages from QueueA to QueueA.Temp
Change the Storage Class of QueueA to Storage Class 2.
Move the messages from QueueA.Temp back to QueueA.
Delete QueueA.Temp.
Issue Display Usage at the QM level to verify your page sets reflect the data moving from one storage class to the other other. I assume your 2 storage classes are mapped to different page sets, otherwise what's the point. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Northsider |
Posted: Mon Sep 18, 2006 2:01 am Post subject: |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
Thanx for the advice.
Im going to try it, I made a little scenario to do it online (with the help of MQMPanels) *we dont have MO71 installed.
The steps;
(1) Change the status of "Put enabled" & "Get enabled" to status "N". (in MQMPanel)
(2) Make a Temp-STGClass. (in MQMPanel)
(3) Make Temp-Queue(s). (in MQMPanel) Those Temp-Queue(s) should refer to the TEMP-STGClass.
(4) With option "Manage Queue." Put All Message(s) from the original Queue(s) to the Temp-Queue(s).
(5) Change the original STGClass (with all empty-Queues) so that it now uses an other PSID.
(6) Load the Messages from the Temp-Queue(s) to the Originele-Queue(s).
(7) Change the status of "Put enabled" & "Get enabled" to status "Y". (in MQMPanel)
Allthough I still dont know why you couldn't just scopy the messages offline, and load them offline to MQ?. (the scopy works, but to load offline messages to MQ, doesnt work?) MQRC=2059. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Sep 18, 2006 2:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Points 4 and 6 will fail.
In order to put or get you have to have the corresponding operation enabled...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Northsider |
Posted: Mon Sep 18, 2006 3:36 am Post subject: |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
Yep, my mistake.. Thanks! |
|
Back to top |
|
 |
Northsider |
Posted: Tue Sep 19, 2006 12:34 am Post subject: |
|
|
Novice
Joined: 09 Mar 2005 Posts: 16
|
Thanx allready for the good advice.
The scenario described above is mainly to change one or a couple of queues. Im now wondering how you guys handle a change to do 100 queues or more. (with messages inside them).
This because I have to change more then 300 queues (with messages) to a different STGCLASS. I could do it; one by one. But thats gonna be hell of a job.
Thanx allready, |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Sep 19, 2006 3:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Use the MF utilities and script it (JCL). Run the job. Voila 300 queues done. _________________ MQ & Broker admin |
|
Back to top |
|
 |
|