[英]Informatica Parameter String
I have a question:我有个问题:
I have a parameter file with:我有一个参数文件:
$$DEPARTMENTS_1 = 'ITS','FINAN','RHM','OP'
$$DEPARTMENTS_2 = 'TECH','BI','FIELD','MECH'
I use the parameter in the source qualifier and it work fine我在源限定符中使用参数,它工作正常
SELECT NAME,PAY,EMPLOYEE_DEPART
FROM HR_DB
WHERE EMPLOYEE_DEPART IN ($$DEPARTMENTS_1,$$DEPARTMENTS_2)
But, In need to use in mapping to use in expression:但是,需要在映射中使用才能在表达式中使用:
DECODE(TRUE,
IN(EMPLOYEE_DEPART,$$DEPARTMENTS_1),'DEPARTMENT-1',
IN(EMPLOYEE_DEPART,$$DEPARTMENTS_2),'DEPARTMENT-2','NO-DEPARTMENT')
Gave me NO-DEPARTMENT to all my records.给我所有记录的 NO-DEPARTMENT。
How I can pass the string list to use in the DECODE.如何传递字符串列表以在 DECODE 中使用。
You have to use mapping parameter and assign the parameter values.您必须使用映射参数并分配参数值。 Post that use the parameter in the decode.
发布使用解码中的参数。
Go through these documents,浏览这些文件,
https://docs.informatica.com/data-integration/powercenter/10-2/designer-guide/mapping-parameters-and-variables/mapping-parameters-and-variables-overview.html https://docs.informatica.com/data-integration/powercenter/10-2/designer-guide/mapping-parameters-and-variables/mapping-parameters-and-variables-overview.html
https://www.guru99.com/mappings-informatica.html https://www.guru99.com/mappings-informatica.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.