How to create a progressional variable in data stage?

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
mfranke
Participant
Posts: 50
Joined: Wed Nov 30, 2005 1:40 am
Contact:

How to create a progressional variable in data stage?

Post by mfranke »

Hi,
I'm loading data from a text file with data stage, this data has no really clear key column I can use. In the Oracle database where I put in the data I use a sequencer to create an id when writing the data in, but I would like to create a progressive variable earlier. Ok, e.g. there are systemvariables like inrow or outrownum, but I want that variable not only to live when the job is running, I want to store the last value and when the job runs next time he should run with the last value +1. Is this possible in data stage?
Thanks for advice,
Mario
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

HI,

I think storing a value of the variable for the next run is not possible
in datastage.

You need to store it in a file or table for reading it in the next run

Regards
Sreeni
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

As Sreenivasulu told its not the variable, you should be using table or file for the purpose.

Datastage provides KeyMgtGetNextValue routine for the purpose. Which anyway uses a file for storing the next value.
Success consists of getting up just one more time than you fall.
mfranke
Participant
Posts: 50
Joined: Wed Nov 30, 2005 1:40 am
Contact:

Post by mfranke »

thank you, to make it with KeyMgtGetNextValue transform works
Post Reply