Difference betwwen dates

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
ksv2584
Participant
Posts: 16
Joined: Wed Nov 10, 2010 6:10 am

Difference betwwen dates

Post by ksv2584 »

Hi

I will run my job on friday(ex :18/03/2011) .. i need to to take monday date (ex : 21/03/2011) and find the number of days between 01/01/1972 and the monday date

for ref

Date: 010172 Day: 00001


Date: 090472 Day: 00100


Date: 160311 Day: 14320


Please help me in implementing this

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

Post by ray.wurlod »

Do you want to perform this calculation in a sequence or in a parallel job?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ksv2584
Participant
Posts: 16
Joined: Wed Nov 10, 2010 6:10 am

Post by ksv2584 »

hi

In a parallel job,i need to populate the differnece of days to to o/p file

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

Post by ray.wurlod »

You need the DaysFromDateSince() function.
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