Code for Build 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
Grace J.
Participant
Posts: 22
Joined: Mon Nov 03, 2008 5:34 am

Code for Build Stage

Post by Grace J. »

Hi, I am trying to create a new build parallel stage for dividing two numbers. I have given input port as 'in' and output port as 'out'. The input table definition is two columns 'a' and 'b' and output table definition is one column 'c'. In Per_Record tab, I have given the code as out.c=in.a/in.b;
When I gave generate, it gives the following error...

Operator Generation Failed

buildop -f -BC /auto/opt/Studio8/SUNWspro/bin/CC -BL /auto/opt/Studio8/SUNWspro/bin/CC -C buildop -H buildop -O buildop -W buildop buildop/divide.opd

##E TBLD 000000 Subprocess command failed with exit status 256.
##W TBLD 000000 Output from subprocess: "bosource10891-0.C", line 293: Error: Multiple declaration for in.
"bosource10891-0.C", line 294: Error: Multiple declaration for out.
2 Error(s) detected.

##W TBLD 000000 Output from subprocess: ld: fatal: file /tmp/bosource10891-0_s.o: unknown file type
ld: fatal: File processing errors. No output written to /detld2/etl/ascential/Ascential/DataStage/Projects/SFB/buildop/bosource10891-0.so

##I TBLD 000000 /auto/opt/Studio8/SUNWspro/bin/CC -L/detld2/etl/ascential/Ascential/DataStage/PXEngine/lib -L/detld2/etl/ascential/Ascential/DataStage/PXEngine/user_lib -G -library=iostream -lorchsun4 -lorchcoresun4 /tmp/bosource10891-0_s.o -o /detld2/etl/ascential/Ascential/DataStage/Projects/SFB/buildop/bosource10891-0.so.

This is the first time I am trying this..So I am not able to find where the error is. Please help me...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No idea myself, but a google search for "Error: Multiple declaration for in" returned over 5M matches. Got be some help in there somewhere.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Grace J.
Participant
Posts: 22
Joined: Mon Nov 03, 2008 5:34 am

Post by Grace J. »

Thanks for your reply Craig. It gets resolved now. I changed input and output port to indata and outdata. Its working now.
Post Reply