Reputation: 1
I have to convert Cobol copybooks into Sql server create statement.
Sample CopyBook : Click Here for sample Copybook
Upvotes: 0
Views: 2235
Reputation: 10543
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.
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