I'm trying to do a case statement with three columns which are 30_Pst_Due_dt, 60_Pst_Due_dt, 90_Pst_Due_dt. I need it to do when 30_pst_Due_dt is between 1 and 29 then '1-29 days'. When 60_Pst_Due_dt is between 30 and 59 then '30-59 days', when 90_Pst_Due_dt between 60 and 89 then '60-89 days'.
I have wrote the following in informatica but I got an Pm parse Error: IIF(30_Pst_Due_dt between 1 and 29, '1-29 days', IIF(60_Pst_Due_dt between 30 and 59, '30 - 59 days', IIF(90_Pst_Due_dt between 60 and 89, '60 - 89 days')))
Between doesn't work in infa. You need to use old school >=
and <=
. Here is how you can rewrite.
IIF(30_Pst_Due_dt >= 1 and 30_Pst_Due_dt <=29, '1-29 days', ...
Pls make sure this variable or output column should be string data type.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.