TimeZone

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sdharu
Participant
Posts: 1
Joined: Sun Jul 16, 2006 10:28 pm

TimeZone

Post by sdharu »

We have a requirement where we need to convert the remote server time to local server time, taking daylight saving into consideration. can we use a routine by which date and year from the input can be extracted and same can be compared with the daylight saving dates? Or is there any other method to accomplish the same task.
Dharani
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome aboard :P
Do you have the logic in your mind. If you do, you can put down the psuedocode here and someone can help you build a routine.
You can get the Year and month both by using ICONV/OCONV functions. Look into help.
Need more info on what do you mean by "convert the remote server time to local server time"
You can get the current time in datastage by using the DATE() function. You can manipulate it further.
Regards
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can also get at the TZ environment variable or specify "DZ" in an Oconv() to get the time zone for the DataStage server machine. How do you propose to get the remote server time and time zone? A database query perhaps?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply