Accessing Existing Database Files

If you are accessing existing data in a relational database, you need to know how to declare your data so that it will match the database fields.

If your COBOL code isn't written yet, you should follow the guidelines given in the appendix of this manual for your specific relational database management system (RDBMS).

If your COBOL application already exists, you can make necessary adjustments by adding XFD directives to your code. XFD directives are comments that guide the creation of the eXtended File Descriptors (XFDs). The XFDs in turn help map the COBOL fields to their equivalent database fields. XFD directives are described in the chapter Using XFD Directives, and XFDs are described in the chapter XFDs.