IsNull() notworking

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
deva
Participant
Posts: 104
Joined: Fri Dec 29, 2006 1:54 pm

IsNull() notworking

Post by deva »

Hi ,
I have file with 4 columns. one of the column is notnull and length is 12 char.

But sometimes null value may come to this column. So while reading I am making as varchar and nullable yes in the file and reading.

I want to reject that record while loading into database.
I am using constrain, IsNotNull(col2). I did len(col2) >0 aswell.
that column have the null value so that record should not load into databse. But It is loading. I didn't see any special char.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

When you say that a null value sometimes comes in the column, what does that mean? What is your null value?

Sequential Files don't contain nulls, but they may contain values which represent nulls. You can define that value in the stage's format options, as described in the Parallel Job Developer Guide.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
hari_marthala
Participant
Posts: 6
Joined: Mon Jul 05, 2010 1:09 am
Location: Hyderabad

Re: IsNull() notworking

Post by hari_marthala »

hi...

Sometimes...we confuse between null value and empty value. So check for empty value of that column
Ex: Trim(Input col)=''
Hari Marthala
Post Reply