Warning Message

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
donlank
Charter Member
Charter Member
Posts: 24
Joined: Fri Nov 05, 2004 11:30 am

Warning Message

Post by donlank »

Hello,

Converting nullable source to non-nullable result; fatal runtime error could occur (use modify operator to specify value to which null should be converted)

Does anyone know how to remove this error with the "modify operator"?
What is the "modify operator"?

I looked at the Modify Stage, but in the documentation, there is nothing about nullable conversions.


Thanks,
Kevin
nkreddy
Premium Member
Premium Member
Posts: 23
Joined: Mon Jun 21, 2004 7:12 am
Location: New York

Re: Warning Message

Post by nkreddy »

You might need to fill in something in the Modify Stage for the nullable source...

For example:

COLUMN:string = NullToZero(COLUMN,0)

Or you can say NullToEmpty....

Refer page 493 in Parallel Developer's Guide
dswizard
Participant
Posts: 5
Joined: Mon Feb 21, 2005 5:54 pm

Post by dswizard »

Hi

You can default the value of that column to some default value incase if it comes as null. It is like NVL in sql. If F1 is the field that you comes as null , you can specify something like

F1 = HANDLE_NULL(F1,999) in modify stage.

Hope this helps
T42
Participant
Posts: 499
Joined: Thu Nov 11, 2004 6:45 pm

Post by T42 »

Modify Operator (Stage) used to be the primary method for conversion of nullability type. Now you can do it within Transformer Stage. Do an "If IsNull(Field) Then Value Else Value"

Modify Operator use OSH functions, not DataStage functions. So IsNull() will not work. is_null() will work.
Post Reply