Null Handling using 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
rajeev_prabhuat
Participant
Posts: 136
Joined: Wed Sep 29, 2004 5:56 am
Location: Chennai
Contact:

Null Handling using Modify stage

Post by rajeev_prabhuat »

Hi,

I am reading data from a sequentile file, with fields with two null colunms and one notnull column, to handle the null vaules i used Modify stage and in the specifications of the Modifystage i gave the expression as follows:
col_1= NullToValue (col_1,'AA')
col_2 = NullToValue (col_2,0)
When i complie it is fine, but when i validate it i am getting the error. The error is as follows:
main_program: Error parsing modify adapter: Error in binding: Unknown conversion: NullToValue
Expected destination field selector, got: ")"; input:
col_1= NullToValue (col_1,AA)
;
col_2 = NullToValue (col_2,0)
Can anyone guide me, to solve this problem.

Regards,
Rajeev Prabhu
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
use search here befor you post so we have less duplicate posts of the same data.
by the way using search prevented me from posting this exact question!

IHTH
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post by Amos.Rosmarin »

use this syntax:

ENTITY_TYPE=handle_null(ENTITY_TYPE,"NO_TYPE")


Amos
T42
Participant
Posts: 499
Joined: Thu Nov 11, 2004 6:45 pm

Post by T42 »

Do a search for "Orchestrate" or "Modify" and "Null"
Post Reply