Using Surrogate Key generator-Job Aborted

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
sanjayS
Participant
Posts: 16
Joined: Mon Apr 18, 2011 10:56 pm

Using Surrogate Key generator-Job Aborted

Post by sanjayS »

Hi,

Am trying to generate a sequence of numbers starting from 1 by using surrogate key generator stage.

Am having an input column as Emp_Name and in output i need Emp_name numbered as 1,2,3....

The job looks like

Input----Surrogatekeystage-----output

When running,the job gets aborted with log
Could not find key state file Emp_Name
The runLocally() os the operator failed
PLease clarify..

Thanks,
Sai.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The pathname you have given for the state file does not refer to an existing state file.

You do need to create/initialize a state file for each surrogate key. Have you done that?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sanjayS
Participant
Posts: 16
Joined: Mon Apr 18, 2011 10:56 pm

Post by sanjayS »

Thanks Ray..

I didnt created separate file to store the values....

Now its working fine..

Thanks
sai.
Post Reply