Job 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
phanikumar
Participant
Posts: 60
Joined: Tue Sep 20, 2011 10:44 pm
Location: INDIA

Job Warning

Post by phanikumar »

Hi There,

I am running a parallel job where it's giving me a warning message like

Implicit conversion from source type " "string" to result type "string[257]": Possible truncation of variable length string.

I am not doing any unicode conversion it's just string to string.Any ideas how to suppress this warning.

Regards

Kumar
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

Are you using any conversion function in your job??
ANd for second part, you can either suppress or demote your warnings to info in the director using message handler.
Just right click on the warning and you'll see the option
Thanx and Regards,
ETL User
premupdate
Participant
Posts: 47
Joined: Thu Oct 04, 2007 3:37 am
Location: chennai

Post by premupdate »

Probably "string" alone represents a char or varchar field which is unbounded in its length.So the warning.
Cheers,
prem
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

An implicit conversion is one where the engine itself (rather than 'you' in the job) are performing the conversion. This as opposed to an explicit one. As noted, you are moving data from an unbound string to a bound one and thus it is warning you that it just might possibly truncate the data.

You could use substring to suppress the warning.
-craig

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