
Informatica Mapping:Processing VSAM Cobol File
Posted by: Informatica Platform
This listing describes how a VSAM COBOL file containing OCCURS and REDEFINES can be processed using Informatica PowerCenter.
Overview

VSAM sources often de-normalize data and compact the equivalent of separate table records into a single record. PowerCenter Normalizer transformation can process VSAM sources with OCCURS and REDEFINES statements.The REDEFINES clause allows you to specify a different PICTURE clause or a different data name for a previously defined data item. Also The REDEFINES statement allows you to specify multiple PICTURE clauses for the sample physical data location. For example, suppose you sometimes want to refer to the decimal portion of the data, sometimes the whole number portion, and other times you need to refer to the entire number. You can use the REDEFINES clause as shown below. 01 Data-Group 03 Numeric Item PIC9(5)V99. 03 Numeric-Split Redefines Numeric-Item. 05 Numeric-Whole-Portion PIC 9(5). 05 Numeric-Decimal-Portion PIC 9(2). The OCCURS clause specifies the number of times a field is repeated. In other words, OCCURS defines the number of entries in a table. A typical example is months in a year: 01 Month-Table 03 Month-Name Pic X(9) Occurs 12 TimesThe Designer can import COBOL file definitions from source files that have the proper COBOL file layout. Implementation Guidelines:
- You need to FTP the COBOL source code files onto a local machine so the PowerCenter Designer can create VSAM source definitions. When you FTP COBOL source files from a mainframe, transfer it in ASCII mode so you won't see unreadable characters.
- The COBOL data files may also be on a mainframe or a remote machine. You can FTP your COBOL data files to a machine local to the Informatica Server when you run a session.
Features
Automatically create target table definitions by dragging the VSAM source definition from the navigator into the Target Designer workspace.System Requirements:
- Informatica PowerCenter 8.x and above