bulidops stages

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
murari83
Participant
Posts: 14
Joined: Tue Sep 25, 2007 4:05 am

bulidops stages

Post by murari83 »

hi all,

I am writing userdefine stages.its shwoing this error.



seq------>bulid-------------->seq


code is like this


if(b==0 || indata.b<mindiv){

transferAndWriteRecord(1);

//rej.a=indata.a;
//rej.b=indata.b;
//writeRecord(1);

}else{

doTransfer(0);

q=indata.a;
div=indata.b;

res=indata.a/indata.b;
rem=(indata.a)%(indata.b);

writeRecord(0);
}


i am getting this error

Operator Generation Failed

buildop -f -BC /usr/vacpp/bin/xlC_r -BL /usr/vacpp/bin/xlC_r -C buildop -H buildop -O buildop -W buildop buildop/divide.opd

##E TCBO 000000 APT_BUILDOP_Operator: schema variables are not permitted when transfers are specified explicitly.

plese give me the suggestion.


Thanks
m.ramakrishna
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

##E TCBO 000000 APT_BUILDOP_Operator: schema variables are not permitted when transfers are specified explicitly.
This does sound that you have defined tranfers while defining this Build Op stage but you use the output schema explicitly.

Each transfer says that OUTput schema shoud be derived by Which INput schema. Moreover, You can assign multiple INput schemas to a single OUTput schema resulting accumulation of all INput schemas in the OUTput schema.

Check whether transfer is defined anyway and Remove transfer for which you are defining the output schema inside the code.
Post Reply