Add a Data Processor transformation that transforms COBOL input to a mapping with a complex file reader. Configure the complex file reader to optimize how the mapping processes COBOL input in a Hive environment. The input encoding for the complex file reader must be EBCDIC.
In the Mapping editor, create a complex file reader object.
To configure the complex file reader, perform the following steps:
On the
Advanced
tab of the
Properties
view, select the
File Format
property, then choose
Input Format
.
Select the
Input Format
property, then type
com.informatica.hadoop.reader.RegexInputFormat
.
To optimize performance, use the
Input Format Parameters
property to define the regular expression in the form
Regex="<regular expression>"
.
Create a Data Processor transformation for COBOL input using the wizard.
Add the Data Processor transformation to the mapping. The transformation input port should remain set to binary input, the default setting for COBOL input.
Link the complex file reader output port to the Data Processor transformation input port. The complex file reader output port should remain set to binary output.