Search found 8 matches

by harman
Mon Jun 19, 2017 5:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date function in transformer stage
Replies: 7
Views: 4783

Sorry chullet in transformer stage under Date and Time function i saw there is only currentdate not current day so i tried by using DateOffsetByDays(CurrentDate(),((DaysInMonth(CurrentDate()) + 1)*-1)) but getting 2017-05-19. Can you please check again. Sorry i am not getting on the offset can you p...
by harman
Mon Jun 19, 2017 2:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date function in transformer stage
Replies: 7
Views: 4783

Thanks Chullet for reply.
i tried as you suggested

DateOffsetByDays(CurrentDate(),((currentDate() + 1)*-1)) but somehow job is not getting compiled might have some issue on function.

Can you please check this again.
by harman
Mon Jun 19, 2017 1:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date function in transformer stage
Replies: 7
Views: 4783

i tried by using

Code: Select all

DateOffsetByDays(CurrentDate(),1)
but getting
2017-06-20
instead of
2017-05-31
by harman
Mon Jun 19, 2017 1:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Date function in transformer stage
Replies: 7
Views: 4783

Date function in transformer stage

Hello...
i have function LAST_DAY(CURRENT DATE-1 MONTH) returning results 2017-05-31 in sql giving last date of month.i needs to use the same in transformer stage .

i tried by using
DateFromDaysSince(-30, CurrentDate()) function but not works.
Please help me on this.
by harman
Wed Apr 13, 2016 9:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformation help required in Transformer
Replies: 8
Views: 3201

Thanks Ray for reply.

can you please help me by providing the transformation i can use in transformer
by harman
Tue Apr 12, 2016 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformation help required in Transformer
Replies: 8
Views: 3201

minus 1 month means previous month

values
LAST_DAY(Current_Date - 1 MONTH) i ran this statement in db2 and got the result
2016-03-31 same i need through datatstage
by harman
Tue Apr 12, 2016 2:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformation help required in Transformer
Replies: 8
Views: 3201

Yes chulett last day of previous month
by harman
Tue Apr 12, 2016 1:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Transformation help required in Transformer
Replies: 8
Views: 3201

Transformation help required in Transformer

Hi,

i need below transformation help in transformer

LAST_DAY(Current_Date - 1 MONTH)

please help me on this.