Extracting From 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
ds2000
Premium Member
Premium Member
Posts: 109
Joined: Sun Apr 22, 2007 7:25 pm
Location: ny

Extracting From Cobol file

Post by ds2000 »

How to load cobol file schema although i have ftp'ed the shcema file from mainframe and it has all different levels of data i.e level 10, 05, 20 etc.
How can i output all level of data into a sequential file ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Import the COBOL file definition as a table definition. You can now read the data using a Complex Flat File stage or, indeed, a Sequential File stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

After you import your cobol file definition you will need to flatten the data. DataStage will turn the hierarchy information in the complex flat file into relational data tables so you need to flatten out one branch of the hierarchy at a time.
Post Reply