IF..THEN..ELSE

This forum is in support of all issues about Data Quality regarding DataStage and other strategies.

Moderators: chulett, rschirm

Post Reply
zhaicaibing
Participant
Posts: 49
Joined: Wed Jun 11, 2003 12:49 am

IF..THEN..ELSE

Post by zhaicaibing »

Hi,

Please tell me how to use Quality Manager to check this:

If the status is OPEN then the date column should be blank and
If the status is PENDING then the date column should also be blank and
If the status is CLOSE then there should be a date in the date column.

How do I create the data filter to specify the IF .. THEN.. ELSE?
Alexandre Stoulov
Participant
Posts: 2
Joined: Wed May 07, 2003 6:37 am
Location: Russia

Post by Alexandre Stoulov »

Hi,

I think the filter should be like this

!(( status equals 'OPEN' AND
date not exists) OR
( status equals 'PENDING' AND
date not exists) OR
( status equals 'CLOSED' AND
date exists))

Regards, Alexandre
Post Reply