![Learning Informatica PowerCenter 10.x(Second Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/856/36700856/b_36700856.jpg)
上QQ阅读APP看书,第一时间看更新
Working with fixed width files
Following are the steps that you will have to perform to work with fixed width files:
- In the Designer, go to Tools | Source Analyzer to open the Source Analyzer.
- Go to Sources | Import from File...:
![](https://epubservercos.yuewen.com/679DC5/19470405301626306/epubprivate/OEBPS/Images/93709cf8-1e0a-4b11-a85b-5042fdd2dd51.png?sign=1739384660-JcKsfmPnCVSXQaclQkusWR2Oi62OgiyE-0-c3ada8d0e33db76aca2dc76dbf299991)
- Browse the files you wish to use as source files. We are using EMP_SRC_FILE as reference to import the fixed width file.
- The flat file import wizard will come up.
- Select the file type--fixed width.
- Click on Next:
![](https://epubservercos.yuewen.com/679DC5/19470405301626306/epubprivate/OEBPS/Images/a2460f52-16c4-4912-9440-edca7f9ceb63.png?sign=1739384660-GKIv18lUmhryqdmPIB0ypto03LbCem8W-0-cd50a2695f2e42e32989195e71e162bf)
- As against the delimited files, we will now need to set the width of each column as per the requirement. This will help us in dividing the file in a proper column-wise manner.
- Click on Next:
![](https://epubservercos.yuewen.com/679DC5/19470405301626306/epubprivate/OEBPS/Images/79578c32-9d9c-498e-a50b-b8d1269d4186.png?sign=1739384660-P8oH1cEu4PnbrCCuI2h3urnNWEyhz9iz-0-892245e3a8791f1f0fd6af92bf5be1d3)
- Specify the columns name, data type, and precision in the data view option. You can edit the column names and other details in this view:
![](https://epubservercos.yuewen.com/679DC5/19470405301626306/epubprivate/OEBPS/Images/805036e4-bc8f-469f-b1f1-f1263eb64c12.png?sign=1739384660-8dKLP3A7VbXSLgD6buQIC6vNg4jxmbUw-0-3f6bfc6785edf7db17f75631ae307b36)
- Click on Next.
- Click on Finish to get the source imported in the Source Analyzer as shown in the following screenshot:
![](https://epubservercos.yuewen.com/679DC5/19470405301626306/epubprivate/OEBPS/Images/b41ac7b5-2e1e-479b-9343-feb0e2950f95.png?sign=1739384660-8VzKRw2ImdWxhXLMXLw39pqAG8FEaATS-0-9a46e69fcebb477b7b5460a997efb757)
We now move on to the last section of working with sources, that is creating Source options.