Informatica映射创建大型机文件布局的目标文件

时间:2017-04-01 14:11:59

标签: information-retrieval informatica informatica-powercenter

我正在寻找有关如何处理此要求的建议。 我必须使用Informatica映射来构建目标文件。

源文件

Key-1 Key-2 ACCOUNT-1
Key-1 Key-2 ACCOUNT-2
Key-1 Key-2 CC-ACC-1
Key-1 Key-2 CC-ACC-2
Key-1 Key-2 CC-ACC-3

对于上面的输入源布局,我需要有一个基于目标文件的输出记录。

基本上,我需要根据Key-1& amp; Key-2 Field&创建一个可以拥有多个帐户的记录。一个以上的客户信用卡帐户详细信息。

TARGET FILE<< MAINFRAME FILE LAYOUT>>

 

Key-1   String 10
Key-2   String 10
BANK-CUSTOMER-INFO
    MGR-NAME    STRING 50   — data to be extracted from MGR Table
    MGR-EMAIL   STRING 100  — data to be extracted from MGR-ADDTNL-INFO Table
    MGR-PHNE    STRING 10   — data to be extracted from MGR-ADDTNL-INFO Table
    CUST-NAME   STRING 100  — data to be extracted from Person Table
    CUST-EMAIL  STRING 100  — data to be extracted from Person-Addtnl_info Table
CUST-ACCOUNT-INFO
    BANK-ACCOUNT OCCURS 5 TIMES
        ACC-NO      STRING 10           ( Key Field )
        ACC-TYPE    STRING 10       — data to be extracted from  A Table
        ACC-TRXN-DTLS   OCCURS 10 TIMES
            ACC-TRXN-DATE   DATE 10     — data to be extracted from  X Table
            ACC-TRXN-MODE   STRING 10   — data to be extracted from Y Table
            ACC-TRXN-AMT    STRING 10   — data to be extracted from Z Table
    CREDIT-CARD-ACC OCCURS 5 TIMES
        CC-ACC-NO       STRING 10       ( Key Field )
        CC-ACC-TYPE     STRING 10   — data to be extracted from  B Table
        CC-TRXN-DTLS    OCCURS 10 TIMES
            CC-TRXN-DATE    DATE 10     — data o be extracted from  X1 Table
            CC-TRXN-MODE    STRING 10   — data o be extracted from  Y2 Table
            CC-TRXN-AMT STRING 10   — data o be extracted from  Z2 Table

问题: -

How mapping can be accomplished.
Does Informatica supports to have Target Structure as defined above.
Most of my Target Attributes are to be fetched from multiple tables to construct one record, what should be most efficient way to come with Mapping.
Also, I need to denormalise the data as well to get above structure.

1 个答案:

答案 0 :(得分:0)

您展示的结构很容易通过xml目标实现(只要您乐意将目标放在xml中)。

一种方法是为目标中的每个字段设置一个源限定符,然后使用连接器转换来对记录中的详细信息进行非规范化。唯一的缺点是,如果您只想提取一些记录,因为每次映射运行时此方法都会获取源表中的所有记录。

否则,您需要一个源限定符覆盖查询,该查询在开始时对传入记录进行非规范化处理(也可以使用来自powercenter 9.1的内联查找来执行此操作,其中可以将其配置为返回多个匹配,但将是繁琐的)