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 » Time Process Start

Post new topic  Reply to topic
 Time Process Start « View previous topic :: View next topic » 
Author Message
krustyelpayaso
PostPosted: Thu Aug 24, 2006 6:14 am    Post subject: Time Process Start Reply with quote

Apprentice

Joined: 24 Oct 2005
Posts: 26

Hello everybody,

i'm trying to catch the time when the process start. I take the "Properties.CreationTime" or the "MQMD.PutTime" value (both have the same value). The problem is the hour value: it has 2 hours minus.

Why?

Where it take this value?

Is there other variable with the good value?

A lot of thanks
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Aug 24, 2006 6:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

The puttime is GMT (aka UCT), what timezone are you in?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Thu Aug 24, 2006 2:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

wschutz wrote:
The puttime is GMT (aka UCT), what timezone are you in?
Eastern Europe aka GMT + 2?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
krustyelpayaso
PostPosted: Thu Aug 24, 2006 10:11 pm    Post subject: Reply with quote

Apprentice

Joined: 24 Oct 2005
Posts: 26

No exactly, GMT + 1 (Madrid, Paris).

Is there any variable which i can take this hour, or i must "build" it?
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Aug 25, 2006 1:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

How are you looking at the time in the message... MQExplorer "fixes up" the time to adjust to the local timezone setting (ie, based on the TZ environment variable in Unix)...
What tool are you using to "look" at the puttime?
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
krustyelpayaso
PostPosted: Fri Aug 25, 2006 2:08 am    Post subject: Reply with quote

Apprentice

Joined: 24 Oct 2005
Posts: 26

I have two methods to look the puttime value:

1-into local environment
with the debugger (i can follow the process)

2- into Unix environment (server)
through the next code

-- InputTime HH:MM:SS --
SET datetime = CAST(InputRoot.MQMD.PutTime AS CHAR);
SET OutputLocalEnvironment.Variables.inputTime = SUBSTRING datetime FROM 10 FOR 8 );

After i do this into a trace node to write "logs":
inputTime=${LocalEnvironment.Variables.inputTime }

I can see the final results into the logs file

RM: i know the CAST instruction is unnecessary. I must remove it

Do you think that the problem can be a bad value of TZ variable of the Unix server?. I execute the command DATE into the server and it's OK.
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 » General IBM MQ Support » Time Process Start
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.