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 » WebSphere Message Broker (ACE) Support » Timestamp problem

Post new topic  Reply to topic
 Timestamp problem « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Wed Sep 14, 2005 6:41 pm    Post subject: Timestamp problem Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

I am using the CURRENT TIMESTAMP function within WMQI 2.1. And the timestamp I am getting is 1 hour earlier than the EDT time I was expecting:

I got 2005-09-14-20.58.52.051077... but it was really 21:58

Any suggestions of how I could handle it? I am thinking that it might be an issue just during EDT, but still I need to work around it.

I thought it was suggested to use DB timestamps. Any suggestion of how I could use DB2 on MVS? Sampe ESQL would be appreciated!

Thanks!
Back to top
View user's profile Send private message
JT
PostPosted: Wed Sep 14, 2005 8:24 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

What platform, MVS ?
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Thu Sep 15, 2005 9:10 am    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

Yes, this is MVS.

Thanks!

-Lori
Back to top
View user's profile Send private message
JT
PostPosted: Thu Sep 15, 2005 4:40 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

See if this will do the trick:
Code:
SELECT current timestamp FROM sysibm.sysdummy1
Back to top
View user's profile Send private message
DELLIPIZ
PostPosted: Thu Sep 15, 2005 8:20 pm    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hi,

Both
SET HOLD_DATE_TIME_TS = SELECT current timestamp FROM sysibm.sysdummy1;

AND

SET HOLD_DATE_TIME_TS = SELECT CURRENT_TIMESTAMP FROM sysibm.sysdummy1;

cause syntax errors.

-Lori
Back to top
View user's profile Send private message
Tibor
PostPosted: Fri Sep 16, 2005 1:13 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

The SELECT statement returns an array but you need a scalar. Look this site in the WBIMB Help:

Returning a scalar value in an XML message

Tibor
Back to top
View user's profile Send private message
JT
PostPosted: Fri Sep 16, 2005 6:23 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

This ESQL......

Code:
SET Environment.Variables.HOLD_DATE_TIME_TS[] =
    PASSTHRU('SELECT current timestamp FROM sysibm.sysdummy1');

produced these results.......

Code:
  (0x01000000):Variables = (
    (0x01000000):HOLD_DATE_TIME_TS = (
      (0x03000000):Column0 = TIMESTAMP '2005-09-16 10:19:48.180484'
    )
  )
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 » WebSphere Message Broker (ACE) Support » Timestamp problem
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.