Timeline splitup logic

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
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Timeline splitup logic

Post by satheesh_color »

Hi,

I will need to splitup the dates as there are overlapping

Type Start Stop
---------------------------------------------
C 01/01/2011 01/31/2011

B 02/01/2011 05/31/2011
C 03/01/2011 08/31/2011
D 05/01/2011 10/31/2011
B 09/01/2011 12/31/2011


Since there are overlaps, the timeline needs to be split as follows:

Start Stop active
---------------------------------------------
01/01/2011 01/31/2011 C only
02/01/2011 02/28/2011 B only
03/01/2011 04/30/2011 B, C
05/01/2011 05/31/2011 B, D, C
06/01/2011 08/31/2011 C, D
09/01/2011 10/31/2011 B, D
11/01/2011 12/31/2011 B only


kindly let me know your thoughts.

Thanks,
Satheesh.R
Last edited by satheesh_color on Thu May 10, 2012 12:47 am, edited 1 time in total.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you analysed your logic and written out an algorithm? What have you already tried?

Or are you just expecting us to do your work for you?
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