Capture the schema

The dbschema utility is a program that examines the contents of a database and generates all the SQL statements you require to re-create it. You can build the first version of your database, making changes until it is exactly as you want it. Then you can use dbschema to generate the SQL statements necessary to duplicate it. For information about the dbschema utility, see the Informix® Migration Guide.