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 » IBM MQ Installation/Configuration Support » WMQ 7.0.1.10 - Error log date format

Post new topic  Reply to topic
 WMQ 7.0.1.10 - Error log date format « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Tue Jun 04, 2013 11:38 pm    Post subject: WMQ 7.0.1.10 - Error log date format Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

WMQ 7.0.1.10 on AIX 6.1
How can I get the dates in the MQ error log to be logical UK format ones instead of the confusing American format ones?

Quote:
----- amqzfubx.c : 594 --------------------------------------------------------
06/05/13 08:18:37 - Process(10354772.1) User(xxxx) Program(runmqchl_nd) Host(zzzzz)
AMQ9002: Channel 'CH01.XXXX.YYY' is starting.

EXPLANATION:
Channel 'CH01.XXXX.YYY' is starting.
ACTION:
None.


This date is 5th June 2013 - since I am a logical sort of person I would like it in either dd/mm/yy or yy/mm/dd format.

How can that be achieved?
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Jun 05, 2013 1:25 am    Post subject: Re: WMQ 7.0.1.10 - Error log date format Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

zpat wrote:
WMQ 7.0.1.10 on AIX 6.1
How can I get the dates in the MQ error log to be logical UK format ones instead of the confusing American format ones?

AIX provides locales for specifying preferred language and cultural conventions for various categories, including date and time formatting. The "locale -a" command displays a list of supported locales; try picking one of those to set the LANG or LC_* environment variables accordingly, (for example: "export LANG=en_GB").

However, if WMQ doesn't use the locale to format dates in log files, then that won't help at all.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jun 05, 2013 1:38 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

LANG=en_GB

is already set in environment variables.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 05, 2013 3:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

did you install the UK/GB MQ lang pack?
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jun 05, 2013 5:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I have these filesets installed

Quote:
mqm.base.runtime 7.0.1.10 APPLIED WebSphere MQ Runtime for
mqm.base.samples 7.0.1.10 APPLIED WebSphere MQ Samples
mqm.base.sdk 7.0.1.10 APPLIED WebSphere MQ Base Kit for
mqm.client.rte 7.0.1.10 APPLIED WebSphere MQ Client for AIX
mqm.java.rte 7.0.1.10 APPLIED WebSphere MQ Java Client, JMS
mqm.jre.rte 7.0.1.10 APPLIED WebSphere MQ Java Runtime
mqm.keyman.rte 7.0.1.10 APPLIED WebSphere MQ Support for GSKit
mqm.msg.en_US 7.0.1.10 APPLIED WebSphere MQ Messages - U.S.
mqm.server.rte 7.0.1.10 APPLIED WebSphere MQ Server
mqm.txclient.rte 7.0.1.10 APPLIED WebSphere MQ Extended
mqm.base.runtime 7.0.1.10 APPLIED WebSphere MQ Runtime for
mqm.man.en_US.data 7.0.1.10 APPLIED WebSphere MQ Man Pages - U.S.


I don't believe there is such a thing as a mqm.en_GB fileset if that is what you mean?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 05, 2013 5:17 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
I have these filesets installed

Quote:
mqm.base.runtime 7.0.1.10 APPLIED WebSphere MQ Runtime for
mqm.base.samples 7.0.1.10 APPLIED WebSphere MQ Samples
mqm.base.sdk 7.0.1.10 APPLIED WebSphere MQ Base Kit for
mqm.client.rte 7.0.1.10 APPLIED WebSphere MQ Client for AIX
mqm.java.rte 7.0.1.10 APPLIED WebSphere MQ Java Client, JMS
mqm.jre.rte 7.0.1.10 APPLIED WebSphere MQ Java Runtime
mqm.keyman.rte 7.0.1.10 APPLIED WebSphere MQ Support for GSKit
mqm.msg.en_US 7.0.1.10 APPLIED WebSphere MQ Messages - U.S.
mqm.server.rte 7.0.1.10 APPLIED WebSphere MQ Server
mqm.txclient.rte 7.0.1.10 APPLIED WebSphere MQ Extended
mqm.base.runtime 7.0.1.10 APPLIED WebSphere MQ Runtime for
mqm.man.en_US.data 7.0.1.10 APPLIED WebSphere MQ Man Pages - U.S.


I don't believe there is such a thing as a mqm.en_GB fileset if that is what you mean?


I did mean something like that, although it would likely be mqm.en_UK but.

Did you confirm that LOCALE is set in the shell that starts the queue manager? This might not, somehow, be the same as the one that is set for the mqm user...
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jun 05, 2013 6:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

There is no UK fileset.

LOCALE is not set.

LANG is set in the profile that starts the QM.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Jun 05, 2013 11:27 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

If there's no better option, it's always possible to copy and edit the logfiles, with any number of user-friendly regex utilities. For example:

Code:
sed -e 's/^\([0-9]\{2\}\)\/\([0-9]\{2\}\)\/\([0-9]\{2\}\)/\2\/\1\/\3/' < oldlogfile > newlogfile
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 » IBM MQ Installation/Configuration Support » WMQ 7.0.1.10 - Error log date 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.