Precision of Varchar column must be greater then zero?

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
dsedi
Participant
Posts: 220
Joined: Wed Jun 02, 2004 12:38 am

Precision of Varchar column must be greater then zero?

Post by dsedi »

Hi All,

In one of our Jobs, we are using MQ messages as source.
we haven't mension any length for messsage column and mention trype as varchar.

it's showing compailation error
"Precision of Varchar column must be greater then zero"

but some other jobs in the same project running without error
without mention the length of varchar column.

Please advise on this

thanks in advance

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

Post by ray.wurlod »

DataStage is interpreting "" ("we didn't mention any precision") as 0.

You couldn't do it in DDL.

Code: Select all

CREATE TABLE FRED (LASTNAME VARCHAR(0) NOT NULL);
So why do you think it's legal within DataStage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply