NLS Locale for storing UTC date time format

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mouni
Charter Member
Charter Member
Posts: 49
Joined: Tue Jul 11, 2006 11:30 pm

NLS Locale for storing UTC date time format

Post by mouni »

Hi All

We get the date time from the external system in EST format but would be required to store it in UTC format in the database . How can i achieve this ?

Can the NLS locale be of some help ? Or is there some setting to be done in Datastage to write it in the UTC format.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

NLS will be of no help whatsoever. This is an exercise in time zones, not locales. You need to establish the time zone (TZ environment variable) on the server and perform time arithmetic (and perhaps string manipulation) to produce a UTC time.
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