Data cleansing functionality

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
leomauer
Premium Member
Premium Member
Posts: 100
Joined: Mon Nov 03, 2003 1:33 pm

Data cleansing functionality

Post by leomauer »

I need a generic cleansing functionality.
It sounds like this:
When the field value is empty or Null then if it is an Alphanumeric (Varchar and such) field then default it to Null, if it is numeric field, then default it to zero.
It is easy to code, but I do not want to code it for every field in every job.
I would like to have a stage to which I may have any input and output and get the work done.
Does anybody know how to create this (custom or buildup)? Or may be somebody have something similar already.
Thanks.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Not exactly what you're looking for... but you can highlight multiple columns and choose "Derivation Substitution..." from the right-click menu. A definite productivity help when doing repetitive derivations.

Mike
leomauer
Premium Member
Premium Member
Posts: 100
Joined: Mon Nov 03, 2003 1:33 pm

Post by leomauer »

Mike wrote:Not exactly what you're looking for... but you can highlight multiple columns and choose "Derivation Substitution..." from the right-click menu. A definite productivity help when doing repetitive derivations.

Mike
Thanks but that is exactly what i am not looking for. I know how to do that. I am looking for canned functionality.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's nothing "out there" of which I'm aware as a parallel routine.

It may be best to create a Build stage, since you're going to have to discover the metadata as well as to process the data records.

One tip (from IOD2008): unless you have reason not to, always write BuildOps as combinable.
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