Modify Stage Nested Specification

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
pratapsriram
Premium Member
Premium Member
Posts: 41
Joined: Tue Jan 24, 2006 3:43 pm
Location: United States
Contact:

Modify Stage Nested Specification

Post by pratapsriram »

Hello,
I was wondering if there is a way to specify Null Handling and a type conversion together in a single Specification for Modify operators. If so can anyone share the syntax?

I have the following as the current specification:
CANCELLATION_DT=date_from_timestamp(CANCELLATION_DT)
I want to add the Handle_null specification to the result. How to do that?

The reason for doing this is that due to the Nulls the transformer in the successive part is dropping the records(at least I think that is the reason). And to do the CDC I have to get the timestamps in the same format or they would be flagged as updates for every run.

Any ideas are greatly appreciated.

Thanks,
Sreeram
Knowledge is Power
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

That is a downside of the modify operator in that it doesn't allow such nested functions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But you can use more than one Modify stage. You should explicitly or implicitly put a Copy stage between two adjacent Modify stages.
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