Page 1 of 1

Multiple Cobol Copy Books

Posted: Mon Apr 29, 2013 1:16 am
by neeraj
Hello,

I have 50 Cobol copy books(EBCDIC Format) that need to be populated into Teradata with minimal Transformation. The Job design would be

CFF ----> Modify/Transformer--->TD

One option is to create the 50 Datastage Jobs(read and load).

But I am looking for some generic option Like create Multiinstance jobs. But I believe CFF does't support schema files at run time.

Incase anyone is aware about any generic solution, please let me know.

Regards
neeraj

Posted: Mon Apr 29, 2013 7:24 am
by chulett
Define "minimal transformation" for us, please.

Posted: Tue Apr 30, 2013 3:55 am
by nikhil_bhasin
Maybe you can write a script to convert ebcdic files into ascii and then use the files in your job

Posted: Tue Apr 30, 2013 5:33 pm
by vmcburney
This is very hard to do as the Complex Flat File stage does not support column propagation and dynamic ETL. Cobol mainframe files each have a copybook that describes them and this tends to be unique for each file. You will need at least 50 DataStage jobs - one per unique copybook. You may be populating more than 50 target tables - those copybooks that have multiple arrays and different record types can have many types of outputs.

You are going from complex data to flattened data - the flattening process may mean you have many more than 50 target tables.

Minimum transformation can also be tricky when it comes to handling blanks or nulls or empty fields, sometimes the CFF stage needs to convert these to a default value which is a type of transformation.

I have found that if the copybooks are accurate you can load a copybook to Teradata in under an hour but if there are formatting and consistency and data type problems in those copybooks it could take several days to debug a single file.