Truncation 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
stiantok
Participant
Posts: 8
Joined: Tue Sep 09, 2014 8:55 am

Truncation warning

Post by stiantok »

I get the following warning when using the PXPivot-stage in a job:
"When checking operator: When binding output interface field "TYPE" to field "TYPE": Implicit conversion from source type "string" to result type "string[max=1]": Possible truncation of variable length string." I have looked over the data types and lengths, everything looks fine.

For some reason, the warning only appears in the production environment, and not in dev. or test.

What is the best way to get rid of this warning?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The input is a string type with no length (precision). The output is a VarChar with a length (precision) of 1. These do not match. Make them match.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
stiantok
Participant
Posts: 8
Joined: Tue Sep 09, 2014 8:55 am

Post by stiantok »

I have checked the lengths, they all match, so that is not the source of the problem.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

You misunderstood Ray's reply.

Make the METADATA match.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Your warning message says otherwise. I think you've missed the mismatch. Add the reporting environment variable that writes all schemas to the job log and look for the TYPE string field with no length specification. I don't recall the exact variable, but its something like $OSH_PRINT_SCHEMAS.

Mike
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It is exactly like that. :wink:
-craig

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