| Author | 
		  Message
		 | 
		
		  | zpat | 
		  
		    
			  
				 Posted: Tue Jun 04, 2013 11:38 pm    Post subject: WMQ 7.0.1.10 - Error log date format | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rekarm01 | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 1:25 am    Post subject: Re: WMQ 7.0.1.10 - Error log date format | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 1:38 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 Location: UK 
  | 
		  
		    
			  
				LANG=en_GB
 
 
is already set in environment variables. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 3:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				| did you install the UK/GB MQ lang pack? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 5:08 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 5:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 6:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 Location: UK 
  | 
		  
		    
			  
				There is no UK fileset.
 
 
LOCALE is not set.
 
 
LANG is set in the profile that starts the QM. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | rekarm01 | 
		  
		    
			  
				 Posted: Wed Jun 05, 2013 11:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |