modify stage

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
deepthi
Participant
Posts: 56
Joined: Thu Apr 28, 2005 9:52 am

modify stage

Post by deepthi »

Hi
i'm using modify stage to handle null values.
the expression i used is AP_SOC = NullToValue ( AP_SOC, "DMY" ) , where "AP_SOC" is the column that has null values and should be replaced by dummy variable "DMY".
i'm getting the following error
: Error parsing modify adapter: Error in binding: Expected '=', got: "("
Expected destination field selector, got: ")"; input:
can some one please check this.
thank you
deepthi
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

NullToValue will not work in Modify stage. Instead use handle_null (ColName, <default value>) function to replace the null value. Parallel job's documentation needs to be amended.

HTWH.

Regards
Saravanan
deepthi
Participant
Posts: 56
Joined: Thu Apr 28, 2005 9:52 am

Post by deepthi »

Thanks it worked for null values , but its showing 0,rows at the modify link, but the destination file after this modify link is showing all rows.

elavenil wrote:NullToValue will not work in Modify stage. Instead use handle_null (ColName, <default value>) function to replace the null value. Parallel job's documentation needs to be amended.

HTWH.

Regards
Saravanan
Post Reply