Populating Date/time values in CET 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
snt_ds
Premium Member
Premium Member
Posts: 280
Joined: Wed Oct 18, 2006 11:53 am
Location: Pune, India

Populating Date/time values in CET format

Post by snt_ds »

Hi GURUs,
My project "XXXXXX" wants all date time functions to be in CET(central european time), like all the date/time things on the report should have CET. But the job will be run in USA,which is Eastern standard time(CET = ESt + 6 Hours).
Now the problem is if there are like 1000 records it will be an overhead to convert time on each of them to CET because the server will always generate the USA time.so is there any solution/suggestion from you GURU's to simplify the process?
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

you can have a parameter to this job, assign that to (ESt + 6 Hours); and use this parameter whereever you are using current_date
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

These functions are pretty swift. Before you can blink, it would process thousands of records and add 6 hours to it. Did you run a benchmark test for this. Just throw in a row generator, pass it through a transformer and add 6 hours to the current time. Test it out for your max anticipated number of rows, plus 50,000 more. See if that time takes is acceptable by your time window.
Another thing you can do, is to set a stage variable's initial value with your CET time. This way it will only be calculated once per job run.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Umm... Daylight Saving Time?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply