Search found 5 matches

by Sirisha.lingisetty
Fri Apr 21, 2006 12:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing one column value to another if it is null
Replies: 12
Views: 4160

Hi,

Any of my tries are not working.

Please help me how to check whether it is null or not for a string field.

I tried out with IsNull(),SrcInput field="",trim and all.

Please reply me ASAP
by Sirisha.lingisetty
Fri Apr 21, 2006 12:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing one column value to another if it is null
Replies: 12
Views: 4160

Hi Ray,

Anyway the null handling with trim function is throwing one compilation error.

Please correct if my idea goes wrong.

I think, it can be done setNull() function.
by Sirisha.lingisetty
Fri Apr 21, 2006 12:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing one column value to another if it is null
Replies: 12
Views: 4160

Hi,

The datatype for the field is varchar.

I wrote the below line of code.

If IsNull(Trim(DSLink14.address2," ")) Then DSLink14.address3 Else DSLink14.address2
by Sirisha.lingisetty
Fri Apr 21, 2006 12:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing one column value to another if it is null
Replies: 12
Views: 4160

Hi sanjeev,

I tried with your logic, but it's throwing one compilation error.

It seems that all the logic seems to be fine for me.

I wrote this line of code over there.

If IsNull(Trim(DSLink14.address2)) Then DSLink14.address3 Else DSLink14.address2

any comments/Suggestions appreciated.
by Sirisha.lingisetty
Fri Apr 21, 2006 12:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: passing one column value to another if it is null
Replies: 12
Views: 4160

passing one column value to another if it is null

Hi everybody. Please help me to get out of this problem. I have 3 address fileds in my file. In that , what I need to do is , if the value of address1 is null then address2 value need to be moved to address1 and accordingly address3 value need to be moved to address2. This should be done for all the...