How to retreive previous record into the output

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
hemaarvind1
Participant
Posts: 50
Joined: Mon Jan 21, 2008 9:35 am

How to retreive previous record into the output

Post by hemaarvind1 »

Hi everyone,

I am using a dataset as a source file. Can someone please suggest how to retreive a previous record with reference to the current record in the file.

Thank you in advance.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Use stage variables to capture the column values from previous records. This has been discussed many time sin this forum. In transformer stages after v 8.5 you can also user a loop or maybe some of the functions. If you need it for lookup with the same dataset - self reference, copy the dataset ( or the subset of it needed for lookup) to another dataset and use a lookup stage .
Post Reply