How to Import Mainframe(cobol)file into DataStage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sasikiran
Participant
Posts: 17
Joined: Wed Dec 14, 2005 3:20 am
Location: Australia
Contact:

How to Import Mainframe(cobol)file into DataStage

Post by sasikiran »

Hi,

We are trying to import Mainframe(.CPPfile)file into Datastage, how to do that? is there any pirticular stage to do this.


Thanks & Regards

Sas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

CFF or Complex Flat File stage... assuming .CPP is some sort of copybook type file holding a COBOL FD.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need to import the metadata first. In Manager choose Import > Table Definition then choose COBOL FD (or DCLGen, if that's what you have) from the list of available sources. For a COBOL FD table definition you must provide the column number in which the 01 level item appears.

Once you've done that, you will find that a simple file can be read with a Sequential File stage (having loaded the metadata), while a more complex file can be read with a Complex Flat 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.
Post Reply