How to use entries in previous record in next record.

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
sylvan_rydes
Participant
Posts: 47
Joined: Wed Apr 12, 2006 12:13 pm

How to use entries in previous record in next record.

Post by sylvan_rydes »

Hi All,

This is something new for me. I have an ETL job with some value added processing. Here I need to use the values of current record to define some columns of next record. I don know how to keep track for the entries in previous record. Any help would be appreciated.

Thanks in advance.

Sylvan
sylvan rydes
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Stage Variables can hold the 'previous' values of things so you can use them against the next row that comes along. It's all about declaring them in the proper order.

There's a Tech Tip in this zip file that explains how to do group change detection with stage variables. The technique will also work for you in your situation.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sylvan_rydes
Participant
Posts: 47
Joined: Wed Apr 12, 2006 12:13 pm

Post by sylvan_rydes »

Hi Craig,

Thank a lot for the reply.

Sylvan
sylvan rydes
Post Reply