Page 1 of 1

Code for Build Stage

Posted: Fri Oct 30, 2009 4:45 am
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...

Posted: Fri Oct 30, 2009 7:39 am
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.

Posted: Fri Oct 30, 2009 7:43 am
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.