User Variables eliminate restartability

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
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

User Variables eliminate restartability

Post by mfavero »

I am finding that if I restart a sequence, the user variables are not saved. Is this a bug or am I missing something? If the user variables are referenced after a restart (in which the user variable activity is not run again of course) they are NULL. This makes the sequence NOT RESTARTABLE. We are running 8.0.1 with fix pack 1a. :cry:
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not mark that stage as "Do Not Checkpoint"?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

Post by mfavero »

There is no checkbox for "Do not checkpoint run" in the User variables stage.
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then it should not be checkpointed and should always run. Are you certain it is being skipped?
-craig

"You can never have too many knives" -- Logan Nine Fingers
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

Post by mfavero »

:wink: I went back and double checked and then ran some tests. You are correct in that the user variables always get rerun on a restart. So if the variables are defined as static or coming from an external source, everything is OK. I got into trouble because one of the user variables was gotten from a previous stage which ran perfectly the first time and did not run again. In fact this stage cannot be rerun on restart. The value that this stage returns needs to be preserved for restart. It is a UNIX script which produces a temp table name for a detached partition in DB2.

I am rewriting the script to store the temp table name in a flat file. Then the user variable which wants to hold this table name will be changed to call a routine to read the flat file and retrieve the value of the table name. :lol:
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
Post Reply