Madhu Arasur
Madhu Arasur

Reputation: 1

How to convert a Cobol copybooks into sql Server Create table statement...?

I have to convert Cobol copybooks into Sql server create statement.

Sample CopyBook : Click Here for sample Copybook

Upvotes: 0

Views: 2235

Answers (1)

Bruce Martin
Bruce Martin

Reputation: 10543

cb2xml

If you have a lot of copybooks to process, you could look at cb2xml. It can convert a Cobol Copybook to Xml. The cb2xml package has very basic examples of processing the Xml written in java / python / jython / ruby / Groovy. It is easier processing the Cobol in a JVM language.

Have a look at this question Dynamically Reading COBOL Redefines with C# and the answer.

CobolToCsv

For simple single-record copybooks you could use coboltocsv to convert the Cobol file to Csv and process as a Csv file.

Note: I maintain cb2xml and coboltocsv

Upvotes: 1

Related Questions