DDIC *ddopen(char *pname);
Effectively opens a database. After opening a database the permissions must be set. These are set with the permstexis() call. The locking mechanism is also initialized at this stage.
Returns a handle to a DDIC structure if successful and NULL if there was an error.