Has anyone written any code that converts a COBOL copybook to a DTD and/or schema?
or
Is there a tool or utility that will convert a COBOL copybook to a DTD and/or schema?
I've not done this directly, but indirectly in AcuCOBOL by creating an XFD (External file definition) and then parsing the XFD to create SQL commands to CREATE equivalent tables. AcuCOBOL's XFD feature allowed me to identify DATEs and eliminated the need to parse the COBOL records directly. Once you know the name and datatype of the elementary data items, creating the SQL commands is pretty straightforward.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.