Occurs clause from the COBOL file.

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Shree0410
Participant
Posts: 70
Joined: Tue Nov 29, 2005 7:25 pm

Occurs clause from the COBOL file.

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Complex Flat File stage and specify flattening of the array.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply