Column Export warnings

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
mchaves
Participant
Posts: 50
Joined: Mon Aug 08, 2005 9:59 pm
Location: Sydney
Contact:

Column Export warnings

Post by mchaves »

Hi All,

I am trying to eliminate some warnings generated by the column export stage.

This is the message "When binding output interface field "PK" to field "PK": Implicit conversion from source type "string" to result type "string[max=50]": Possible truncation of variable length string.

It seems the column export generates a concatenated string without length explicit defined and when it outputs the result to the output column which has a length specified this causes a warning.

Have checked this issue in other posts but I don't want to suppress this message by message handler.

Any ideas?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Umm.. define an explicit length in the export metadata? Maybe that's what you are doing, and the unbounded string is purely internal. In that case (unless you can associate the stage with a schema file) there's not much I can suggest.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

Don't specify output column length (leave it empty) or specify output type as unknown.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
mchaves
Participant
Posts: 50
Joined: Mon Aug 08, 2005 9:59 pm
Location: Sydney
Contact:

Post by mchaves »

Thanks Guys.

Josh, your recommendation worked very well.. all warnings disappered.

Well done!!!

Cheers
MC
Post Reply