Good Afternoon folks,
I have a few jobs that are summing up an amount field from a source table where the field is defined as decimal(15,2) and inserting into a summary table where the field is also defined as decimal(15,2). whenever I executye these jobs I get teh warning MetaData mismatch
COLUMN.PRECISION Expected = 15 Actual = 31
2 questions where is the 31 coming from and can I resolve this without changing the column definition in the target table?
Thanks - - JOhn
Meta Data mismatch
Moderators: chulett, rschirm, roy
Re: Meta Data mismatch
What does it show in your job for that column as SQL type when you import the column definition? what database are you using in the source and target?JPalatianos wrote:Good Afternoon folks,
I have a few jobs that are summing up an amount field from a source table where the field is defined as decimal(15,2) ..
Thanks - - JOhn
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
-
- Premium Member
- Posts: 306
- Joined: Wed Jun 21, 2006 11:41 am
-
- Premium Member
- Posts: 306
- Joined: Wed Jun 21, 2006 11:41 am
-
- Premium Member
- Posts: 306
- Joined: Wed Jun 21, 2006 11:41 am
As long as there is no data longer than 15 ( which is not possible anyway because your source table has 15,2) it should not give any warnings. but I am not sure as to why it gave warning in your original job
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
[quote="rafik2k"]You source fieled is decimal(15,2).
You are performing sum operation(altering value) on this filed, DataStage is expecting the resultant value will be greater than big amount value of the source filed. I believe that is why datastage throws warning.[/quote]
Check your source data type and scale value, and also check the data after performing sum operation.
You are performing sum operation(altering value) on this filed, DataStage is expecting the resultant value will be greater than big amount value of the source filed. I believe that is why datastage throws warning.[/quote]
Check your source data type and scale value, and also check the data after performing sum operation.