subtracting days from date in transformer

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
srinivas Guduru
Premium Member
Premium Member
Posts: 38
Joined: Sat Dec 29, 2007 9:58 am

subtracting days from date in transformer

Post by srinivas Guduru »

HI

In the Transfomer Input fileld is date

I want to subtract days (like 25) then populate to output field in the form of yyyy-mm-day.

Is it possible ? Then what is syntax

Srini
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

DateFromDaysSince() to add or subtract days from a date.
DateToString() if you are populating a Char/VarChar output column. If a Date datatype, there is no need to format it. It's all in how you view it.

Plenty of examples of both here on DSXchange and in the product documentation.

---EDIT: Just corrected the function name to DateFromDaysSince---

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply