DDIC *ddclose(DDIC *ddic);
This closes a data dictionary, and all the system tables associated with it, and frees any memory allocated. The locking mechanism is also shut down. This has two implications. The first is that all tables opened from this data dictionary should be closed. The second is that if the program terminates without calling ddclose() locks are likely to cause problems with subsequent attempts to connect to the database.