Issue with DateOffsetByComponents

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
dsetlteam
Premium Member
Premium Member
Posts: 35
Joined: Mon Feb 10, 2014 10:14 pm
Location: USA

Issue with DateOffsetByComponents

Post by dsetlteam »

Hi Folks

I just came around an issue with the DateOffsetByComponents function.
If my input date is 2014-01-29 (data type is date), and if I use the above function DateOffsetByComponents(link.column,0,1,0) - it returns 2014-03-01 which is not what I was expecting.

It looks like a bug. Just wanted to share it with everyone.

Cheers!
thompsonp
Premium Member
Premium Member
Posts: 205
Joined: Tue Mar 01, 2005 8:41 am

Re: Issue with DateOffsetByComponents

Post by thompsonp »

Take a look at this article.

http://www-01.ibm.com/support/docview.w ... wg1JR42002

Not so much a bug as a difference in expectations.
With an environment variable you can choose which behaviour you prefer.
dsetlteam
Premium Member
Premium Member
Posts: 35
Joined: Mon Feb 10, 2014 10:14 pm
Location: USA

Post by dsetlteam »

That really helps! Thanks Thompson!!!
Post Reply