surrogate key generator stage

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
dsscholar
Premium Member
Premium Member
Posts: 195
Joined: Thu Oct 19, 2006 2:45 pm

surrogate key generator stage

Post by dsscholar »

Hi Guys,

Sequential file ---> SurrogatekeyGenerator(SKG) --- > Dataset

Inside SKG, i gave the file initial value as 1 and output column as surrogatekey. From the source i get 2 column registerno,names which comes from sds.txt.. In SKG, for source file name i gave an empty file name sdf.txt. I ran the job and i got the following error. I tried with last highest value option also.. I got the same error.

Error :
main_program: Fatal Error: Caught ORCHESTRATE exception in main program: APT_Archive::BadVersion: From: Loading memory archive.

Please advise. I am confused in using surrogate key generator stage.

Thanks in advance.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

First of all, create the flat file sequence within the scope of datastage.Then use this flat file in your other datastage jobs in surrogate key generator stage. 8)
Arvind
dsscholar
Premium Member
Premium Member
Posts: 195
Joined: Thu Oct 19, 2006 2:45 pm

Post by dsscholar »

Arvind,

Could u please tell what u mean in this statement " create the flat file sequence within the scope of datastage ". U mean to say i have a create a file using only surrogatekey generator in a job, with some values in that?

Thanks in advance.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. As documented.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The second person personal pronoun in English is spelled "you". U is one of our posters - it's a Burmese name.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply