i want to add a date column with 180 days

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
seshikumar
Participant
Posts: 44
Joined: Fri Mar 16, 2007 5:51 am

i want to add a date column with 180 days

Post by seshikumar »

I have a date column in source table, I am using 7.5 A server jobs - i want to add 180 days to the source date.

Please advise me how to use it for my requirement.
seshu
Romy
Participant
Posts: 26
Joined: Thu Nov 13, 2008 3:37 am
Location: Chennai

Post by Romy »

Hi,

First convert the input date column to internal date using the iconv function. It will return a number. Then add 180 to this internal date and using oconv function convert it to the external date format.

Hope this will help you.

Thanks.
Romy
seshikumar
Participant
Posts: 44
Joined: Fri Mar 16, 2007 5:51 am

thanks Romy ..........

Post by seshikumar »

Romy wrote:Hi,

First convert the input date column to internal date using the iconv function. It will return a number. Then add 180 to this internal date and using oconv function convert it to the external date format.

Hope this will help you.

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

Post by ray.wurlod »

Please mark this thread as Resolved using the green button at top.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply