Page 1 of 1

Occurs clause from the COBOL file.

Posted: Sun May 20, 2007 11:17 am
by Shree0410
Occurs clause from the COBOL file.

I have a input file coming from mainframe and the COBOL copybook has a table with occurs clause. The requirement is like this, Using DataStage 7.x, if the table OCCURS 2 times, I have to generate 2 rows in the output, i.e. 1 row for the first occurrence and 2nd row for the second occurrence. Any help on how to generate 2 rows for a single input row is greatly appreciated. Thanks

Posted: Sun May 20, 2007 2:22 pm
by ray.wurlod
Use a Complex Flat File stage and specify flattening of the array.