Search found 5 matches

by jck77
Thu Aug 24, 2017 12:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unexpected results from IF THEN clause
Replies: 9
Views: 4175

hi ,
as Franklin and UCDI suggested, i broke into single statement using stage variables. then i created a new column with conditions.
This works and is much simpler

Thanks to all
by jck77
Tue Aug 22, 2017 8:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unexpected results from IF THEN clause
Replies: 9
Views: 4175

Hi Franklin, thanks for this new approach. i will it a try
by jck77
Tue Aug 22, 2017 4:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unexpected results from IF THEN clause
Replies: 9
Views: 4175

Sure. tried IsNotNull then got same unexpected output.

how to evaluate multiple if---then in Transformer? maybe my syntax is wrong

i appreciate any help

Thanks.
by jck77
Mon Aug 21, 2017 4:05 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unexpected results from IF THEN clause
Replies: 9
Views: 4175

Hi Chulett,
thanks for reply

i am checking only non null string from multiple columns (A,B,C,..). If it is not null then evaluate to constant value

don't know if this answers to your question...
by jck77
Mon Aug 21, 2017 2:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unexpected results from IF THEN clause
Replies: 9
Views: 4175

Unexpected results from IF THEN clause

Hello, I am using 11.5 PX. When I try this IF THEN clause in Transformer stage: if columnA <> '' then 'RT' else if columnB <> '' then 'RT' else if columnC <> '' then 'RT' else if columnD <> '' then 'RT' else if columnE <> '' then 'RC' else if columnF <> '' then 'RF' else '' Unfortunately, this alway...