NextSurrogateKey()

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

goutam
Premium Member
Premium Member
Posts: 109
Joined: Thu Jul 26, 2007 6:53 am

Post by goutam »

rleishman wrote:Are you trying to use NextSurrogateKey() in a Stage Variable?

If so, I don't believe that you can. You can only use it in an output link column derivation.
Hi all

I read all the post for this topic. I was also tring to generate surrogate key thru surrogate key generator stage . I also got the same error message as srimtta was getting. I am wondering , does this key source name (State file name along with path) should be present in windows drive and not the UNIX?. My IS 8.0.1 is installed on UNIX.


srimitta , have you succeded at last or still pending?
if succeded ..then please help me out.
Goutam Sahoo
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you feel like helping, do so over in the other thread that goutam (properly) opened for this:

viewtopic.php?p=266777
-craig

"You can never have too many knives" -- Logan Nine Fingers
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

rleishman wrote:Are you trying to use NextSurrogateKey() in a Stage Variable?

If so, I don't believe that you can. You can only use it in an output link column derivation.
You can get a patch from IBM to call it in a stage variable.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

Post by ds_is_fun »

Seems like you did not create the source key first using DS.
Read the reply-viewtopic.php?p=266794&highlight=#266794 that I just wrote.

Also remember that there is a different way to initialize it. You will need to create the source file and manually create a initialization flat file.
In the transformer stage point to the initialization file through a job parameter and point to the location of the source file.
Post Reply