Datastage is not throwing any warning

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
vamsi_4a6
Participant
Posts: 95
Joined: Wed Jun 04, 2014 12:06 am

Datastage is not throwing any warning

Post by vamsi_4a6 »

The source column for transformer is CLAIMAMOUNT(NVARCHAR(255)).
I am converting to StringToDecimal(CLAIMAMOUNT) of length 19 and scale 6.It is not throwing any error.I excepted warning in log since 255 will not fit into length 19 and scale 6.Could anybody provide input on this why it is not throwing any warning?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It "will not fit"? That depends entirely on what is inside the large string. Can you show us some specific examples of values you think should throw a warning?
-craig

"You can never have too many knives" -- Logan Nine Fingers
vamsi_4a6
Participant
Posts: 95
Joined: Wed Jun 04, 2014 12:06 am

Post by vamsi_4a6 »

Currently all the values in source are in the range of length 19 and scale 6.
Let us say I have value like 99999.....9 [Fill length 255] in source.

Question 1: In that case will DataStage will throw warning?

Question 2: Currently I do not have that scenario (99999.....9 [Fill length 255]). Due to this I am not getting a warning. If I have
a scenario like it will it throw an error? Please correct me if I am wrong.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Remove all doubt by trying it yourself, see what it does. Then let us know. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply