hard coded value in modifier

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
arnabdey
Participant
Posts: 50
Joined: Wed Jan 10, 2007 5:56 am

hard coded value in modifier

Post by arnabdey »

Hi

Can I create new columns in the output of a Modifier stage with hard coded values? I want to avoid using transformers. I also need to do some NullHandling along with the above mentioned requirement, which I know can be done with Modifiers. Also is there any way to incorporate if.. else logic in the modifier...

Thanks
Arnab
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

While you can create new columns in the Modify stage, you cannot do so with "hard coded values" i.e. constants. Nor can you do "if-then-else" logic - both of those are the domain of the Transformer, which there really isn't any reason to avoid nowadays.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

FYI

(courtesy of Mr McBurney)
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

very good find ..:)
Post Reply