@NULL

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
raji33
Premium Member
Premium Member
Posts: 151
Joined: Thu Sep 23, 2010 9:21 pm
Location: NJ

@NULL

Post by raji33 »

Hi All,

I have a condition If IsNull(DSLink1.EMP_ID) Then ' ' Else DSLink1.EMP_ID

Now iam confused when to use @NULL , Can we use @ NULL instead of ' ' in the condition .

Please suggest me.

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

Post by chulett »

No. That derivation is testing for null and when it is null is setting the output to a single space. Also, there's no reason to do any kind of a test if the input should be passed along unchanged, null or otherwise, which is what your proposed modification would (in effect) do.
-craig

"You can never have too many knives" -- Logan Nine Fingers
raji33
Premium Member
Premium Member
Posts: 151
Joined: Thu Sep 23, 2010 9:21 pm
Location: NJ

Post by raji33 »

Thank you chulett, got it
Post Reply