Adding Months to theExisting Months

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
irajasekharhexa
Premium Member
Premium Member
Posts: 82
Joined: Fri Jun 03, 2005 5:23 am
Location: Bangalore
Contact:

Adding Months to theExisting Months

Post by irajasekharhexa »

Hi,

In one of my Job I need to add exactly 3 months days to the existing date.

Suppose if the Incoming date is coming as 2007-01-01 then output date should be 2007-04-01

So for this I can use MonthFromDate function to extract the Month from the input date and adding 3 value for that doesn't give the accurate results. Since everymonth has different no.of days.

So any sugessions please to achive the accurate 3 months days(According to Corresponding no.of days from the respective month) addition to the existing Date?

Thanks
Rajasekhar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Download date routines from my website and use the AddMonths routine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
leo76
Participant
Posts: 7
Joined: Sun Jan 07, 2007 9:05 am

Post by leo76 »

But how to call server routine in Parallel job transform
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Basic Transformer.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply