Replace null field in record with double pipe

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? If you are writing to a pipe delimited file, then what you want to happen will happen automatically. What issue are you having?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad_chennai
Participant
Posts: 38
Joined: Wed Jul 18, 2007 12:23 am
Location: Chennai

Replace null with double pipes

Post by prasad_chennai »

Sorry for the typing error Chulett. Actually I want to replace the null field with a double pipe. And I want to implement this in my transformer.
Is there any way to implement this? As there are lots of coulmns involved.

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

Post by chulett »

Still confused, but if that's really what you want to do simply use the IsNull() function to check and if true then replace the value with two pipes:

Code: Select all

If IsNull(Link.Field) Then '||' Else Link.Field
Yes, for every column.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply