Informatica中语句实现的情况

问题描述 投票:1回答:1

有人可以帮助我在Informatica PowerCenter中的表达式转换中编写以下案例陈述吗?

Case      When STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null and BI_Outcome__c is null then 'PA Required'
              when STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null 
                                      Then Decode (BI_Outcome__c, 'PA Appeal Pending', 'PA Appeal Required','PA Pending','PA Required',BI_Outcome__c)
                when  STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null  Then 'Approved'
                  when  STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null  Then 'Denied'
                  when Outcome__c='PA Pending' then 'PA Required'
                  When Outcome__c='PA Appeal Pending' then 'PA Appeal Required'
                   when  STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null  Then 'Approved'
                  when  STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null  Then 'Denied'
         else Outcome__c end
oracle informatica informatica-cloud
1个回答
0
投票

我完全看不到任何问题。在我看来,这是嵌套的if-else语句。您可以使用以下指南实现自己-

 IIF ( IN(STATUS_REASON_CODE,'BI Complete' , 'BI Updated', 'BI Complete' ) AND and Outcome__c is null and BI_Outcome__c is null, 'PA Required',
  IIF (STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null , 
   IIF(BI_Outcome__c = 'PA Appeal Pending', 'PA Appeal Required', 
    IIF(BI_Outcome__c = 'PA Pending','PA Required',BI_Outcome__c)...

当然这还没有完成,您需要完成它。这看起来很复杂,但并非不可能。

© www.soinside.com 2019 - 2024. All rights reserved.