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 » Mainframe, CICS, TXSeries » How to remove a log from the active ring of logs

Post new topic  Reply to topic
 How to remove a log from the active ring of logs « View previous topic :: View next topic » 
Author Message
dogbert64
PostPosted: Wed Oct 21, 2009 12:02 pm    Post subject: How to remove a log from the active ring of logs Reply with quote

Acolyte

Joined: 11 Jun 2003
Posts: 58

Looking over the System Admin guide for z/OS, I see how to dynamically add a log to the ring of active logs using DEFINE LOG but I don't see how to remove a log. I don't see a command in the Command Reference which relates to that either.

Anybody know how to take a log file out of the rotation list? Is it simply a matter of deleting it when it is not the Active Log and maybe restarting the Queue Manager or are there some records in the BSDS which might be "in love" with that log and those have to be removed as well?

We are running MQ 6.0 on two z/OS 1.9 LPARs using QSG if that helps.
Back to top
View user's profile Send private message
dogbert64
PostPosted: Wed Oct 21, 2009 12:23 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Jun 2003
Posts: 58

Okay, it looks like the change log inventory utility (CSQJU003) will do this. It has a Delete command that will remove info about the log from the BSDS.

I've never done this before, so has anyone else? Are there any "gotchas" to it?
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Oct 22, 2009 12:09 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

MQ must be stopped. Make sure that the active log you are going to remove is not required for restart. if you use dual logging, remove either both or none (i guess)
_________________
Regards, Butcher
Back to top
View user's profile Send private message
dogbert64
PostPosted: Thu Nov 05, 2009 7:43 am    Post subject: Reply with quote

Acolyte

Joined: 11 Jun 2003
Posts: 58

Mr Butcher wrote:
Make sure that the active log you are going to remove is not required for restart.


How do you do that? I've looked through the documentation and I don't see explicitly how to determine if a Active Log can be removed so it can be re-allocated in a larger size.
Back to top
View user's profile Send private message
dogbert64
PostPosted: Fri Dec 04, 2009 8:08 am    Post subject: Reply with quote

Acolyte

Joined: 11 Jun 2003
Posts: 58

Okay, figured it out. Run program CSQJU004 (print log map utility) and point it to a BSDS. The System Admin Guide for z/OS can tell you how to setup the JCL and the particulars of the utility.

Although it lists a bunch of information, all you have to do it look at the Active Section and you'll see your log ring there. There are 2 sections (if you are using Dual Logging), entitled ACTIVE LOG COPY 1 DATA SETS and ACTIVE LOG COPY 2 DATA SETS, so for consistency sake you probably want to check both (if you are using Dual Logging). All but one will be marked as REUSABLE and those are NOT the Active logs. The one marked NOT REUSABLE is the Active log.

Also, the utility lists all the Archive Log datasets the QM knows about. All in all, a handy utility to be familiar with.

By the way, our ASG monitor TMONMQ lists all the log datasets, which are Active and which are Reusable, etc. But I forced myself to use CSQJ0004 and I am glad I did. It is good to be familiar with the IBM utilities.
Back to top
View user's profile Send private message
dogbert64
PostPosted: Fri Dec 04, 2009 8:14 am    Post subject: Reply with quote

Acolyte

Joined: 11 Jun 2003
Posts: 58

One other thing I didn't mention about CSQJ0004. Since it (appears) to read the BSDS directly without going through the QM, it can be run when a QM is down. As a matter of fact, the manual indicates that having the QM down is the only way to get accurate results.

I think that is because the Active Log and Archive Logs are dynamic information.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Dec 04, 2009 9:50 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

(Hi, Phil.)
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » How to remove a log from the active ring of logs
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.