简体   繁体   中英

Informatica Expression transformation logic change

I have a code in Informatica that is currently rejecting any record that has a ROLE_ID other than ' Primary Annuitant ', I need to make a change to reject any record with ROLE_ID other than ' Secondary Annuitant ' and ' Primary Annuitant '.

Here is the current logic

IIF(ROLE_ID<>'PRIMARY ANNUITANT ','Invalid ROLE_ID'),

Need to stop Rejecting ' Secondary Annuitant '

Please Advise

You can rewrite the IIF in many ways.

IIF(ROLE_ID<>'PRIMARY ANNUITANT ' AND ROLE_ID<>'SECONDARY ANNUITANT ','Invalid ROLE_ID'),

OR

IIF(ROLE_ID<>'PRIMARY ANNUITANT ' ,
 IIF (ROLE_ID<>'SECONDARY ANNUITANT ','Invalid ROLE_ID')),...

OR

IIF(NOT IN(ROLE_ID,'PRIMARY ANNUITANT ','SECONDARY ANNUITANT ',0),'Invalid ROLE_ID')...

This will produce 'Invalid ROLE_ID' in case of anything other than primary and secondary annuitant. Pls note also I just reused your code and i am not sure about all of your code.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM