Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

different time zones in db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rakesh1155

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Fri Dec 10, 2010 9:51 am    Post subject: different time zones in db2
Reply with quote

Hi,

I have a requirement to produce a report for a few countries (on diff timezones) : -

The report has to include the local time when it is genereted.

The problem is, it takes the system time (from DB2), So my question goes as:

Is there any DB2 SYSIBM table which contains all timezones (GMT offset) and we can use either of them accordingly ?

If not, Is there any other way of achieving this ? (the only idea that comes to my mind is creating a DB2 table which can be loaded with the timezone data (GMT offset) for all the countries we need to produce this report for ?

Thanks in advance.
Back to top
View user's profile Send private message

avik1983

New User


Joined: 11 Mar 2010
Posts: 5
Location: Chennai

PostPosted: Fri Dec 10, 2010 2:40 pm    Post subject:
Reply with quote

Hope this article will help you.

http://www.ibm.com/developerworks/data/library/techarticle/0211yip/0211yip3.html
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1278
Location: Belgium

PostPosted: Fri Dec 10, 2010 3:06 pm    Post subject:
Reply with quote

you shouldn't call it GMT but UTC.

and what about DST ?

DB2 does not support this, but once you have set up a table containing the timezone and DST-periods , writing a UDF shouldn't be to hard.

If your company is US-based or international, probably someone has already written this kind of routine (maybe not in SQL, but in COBOL,....) .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts cics & real time monitoring icehat CICS 5 Wed Sep 07, 2016 2:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us