Using Null-Handling in Modify Stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Using Null-Handling in Modify Stage

Post by Teej »

Code: Select all

If IsNull(Field) Then 
    // Whatever you want to assign.
Else
    // pass the value
-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
adscot
Participant
Posts: 12
Joined: Mon Oct 13, 2003 3:04 am
Location: London

Post by adscot »

Hello,

Ah ha a solution. An occasion where the datastage documentation does not match the orchestrate documentation...

From Orchestrate 7.0 Operators Reference

Code: Select all

Field1:string = handle_null(Field1,"NULL") 
Thanks for your suggestions.

Cheers,

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

Post by ray.wurlod »

It's good value to report these discrepancies to Ascential so that they can get it right next time around.
(Yeah, it's even better value if they got it right first time but they, too, are human.)
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