Problem with typecasting in BuildOps

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
Vishvas
Participant
Posts: 34
Joined: Sat Jun 21, 2003 3:52 am

Problem with typecasting in BuildOps

Post by Vishvas »

I was trying to generate a build op, which gives you the sum of the values in a decimal column. I could not save that value in a float variable.

float a;

a=indata1.col1;

It throws the following error during compilation.

"Illegal types associated with operator '+': 'float' and 'const class APT_Decimal'."

I even tried to cast this into float and it gives the same error. I also tried changing the datatype of that column to float. But it throws the same error.

Can anybody suggest a solution for this problem.

Arun
Post Reply