Page 1 of 1

Decimal error while compiling

Posted: Mon May 23, 2011 9:32 am
by theone
I receive error "Parsing parameters "0,0" for schema type "decimal": Precision must be > 0 and <= 255" while compiling the job


I have source field CODE_ID as decimal (8,0) in oracle and target as CODE_ID as decimal (8,0) in teradata with fastload utility as the table is new with no data.


Any inputs greatly appreciated,

Thank you.

Posted: Mon May 23, 2011 2:35 pm
by ray.wurlod
Check that you have a non-zero, non-blank value actually in the Precision part of the decimal declaration. DataStage is finding one of these.

Posted: Wed May 25, 2011 8:08 am
by theone
Thanks Ray, as I mentioned it is Decimal (8,0).. is it okay if I have a non zero value in precision?

Posted: Wed May 25, 2011 5:30 pm
by ray.wurlod
It's not only OK, it's mandatory. But DataStage thinks there's a zero or empty precision in there somewhere. Enable the environment variable that dumps schemas (from memory it's something like OSH_PRINT_SCHEMAS) to get a more detailed diagnosis.

Posted: Wed May 25, 2011 11:33 pm
by chandra.shekhar@tcs.com
Plz check if you are using any stage variables, if yes then change their datatype to varchar(255)

Posted: Thu May 26, 2011 7:12 am
by theone
I did not use any stage variables.. I know how to handle it using MLOAD but as of now I am using fastload..