Date

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
ramisetti
Participant
Posts: 1
Joined: Wed Sep 20, 2006 3:33 pm

Date

Post by ramisetti »

Hi,

I have a table 'X' with a field called 'B'
I need to pass next day date to the field 'B'
I have to do this in the Transformer what function I can use for this.


Is there any help on this

Thanks.
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Post by swades »

Try this:

Code: Select all

DateFromJulianDay((JulianDayFromDate(CurrentDate())+1)) 
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Transformer stage itself can not pass the date to the the table; it can calculate the date as swades indicates. But to pass it to the table you will need the appropriate database stage type. You will also need that the data type of column B is compatible with Date.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
laxmi_etl
Charter Member
Charter Member
Posts: 117
Joined: Thu Sep 28, 2006 9:10 am

Post by laxmi_etl »

It is working

Thanks
Post Reply