Hi,
I'm converting the below logic into DB2 from Oracle query.

Select CASE
WHEN CNT.CNT_STATUS IN (75, 85) THEN
to_date(to_char(varRunDate, 'dd-mon-yyyy'))
-
TRUNC(CNT.CNT_SETDTE)
ELSE
(NULL)
END
From C_NET_TRADES CNT

NOTE: varRunDate is a variable for assigning Date.

Please help me to convert this query.

Thanks in Advance.