date scenario solution

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
ysrini9
Participant
Posts: 108
Joined: Tue Jul 12, 2005 2:51 am

date scenario solution

Post by ysrini9 »

Hi all

mysource is OCI

posdate Ros(rateof sal)

21-01-2005 55

14-04-2005 60

08-07-2005 70

28-10-2005 75



my Target


Timpky posdate Ros


21-01-2005 21-01-2005 55

01-02-2005 21-01-2005 55

01-03-2005 21-01-2005 55

14-04-2005 14-04-2005 60

01-05-2005 14-04-2005 60

01-06-2005 14-04-2005 60

08-07-2005 08-07-2005 70



here lookup is

timpk pos

21-01-2005 55

...........................

...............................

...............................


like that now here condition is for example i am geeting datalike this : 14-01-2005 70
21-01-2005 55

here i have to tke lastest one only Ex:out of two 21-01-2005 55


finally i need to caluculate like this: 12-aug-2005 to 10-sep-2005 sales is closed in case


timpkey posdate ros

01-08-2005 08-07-2005 70*(12/31)

01-09-2005 08-07-2005 70*(20/31)

This is the scenario.

please try to help

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

Post by ray.wurlod »

Search the forum for techniques for remembering values from the prior row and detecting change in a column using stage variables. It can all be done with these.
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