If you want to provide SQL access to your data, you will need to define the record schema through an XDD (eXternal Data Definition) file. The XDD is an external XML file that is stored as a special resource within the data file created through the processes described in this chapter. If your COBOL compiler can provide an XFD, you can generate the XDD from it using ctutil -xfd2xdd or ctutil -sqlize. If you do not have an XFD, the xddgen utility can generate the XDD from your COBOL source code.
This command-line utility analyzes your COBOL program to create the XDD. You will specify the COBOL program file as input. A variety of other parameters allow you to specify the dialect of COBOL (ACCUCOBOL, Micro Focus, IBM, etc.), source format (free or fixed), directories, and other options.
This section explains enhancements to this utility.