I have an issue when trying to lock a model for edit (EapiWriteLock).
After I call function I am getting this error:
GENCLNT: Group is not found in Message Dispatcher INI file.LOCK: StartClient failure, mdsrc = 28340
What could be source of this error?
this could be a couple of reasons like:
-there is no environment variable as IEF_DIRGROUP or IEF_ENCYGROUP-the IEF_MDNAME environment parameter was not set. Should be: iefmdname/portno
I would suggest to open a Support case for this error. Please provide details about the version installed and if available a error log.
On a user PC there are 2 environment variables set : IEF_MDNAME(host1/2500) and IEF_RDSNODE(host1/2502).
The host has 2 encyclopedias configured.
Login works OK as :LogIn("ency2/ency2@host1", "ENCYADMN");
Should IEF_DIRGROUP and IEF_ENCYGROUP be set on encyclopedia host machine ?( which is AIX).
The IEF_ENCYGROUP environment variable is used by a CSE client connecting to the CSE Server/iefmd. That value is used to map to the correct GroupName listedat the end of the iefmd.ini file so that the correct Encyclopedia is accessed. The CSE Ency API connects direct to the CSE database and not to the iefmdprocess,but also required the IEF_ENCYGROUP value. The IEF_MDNAME environment parameter looks fine ( iefmdname/portno ).
If this not helps,please open a Support case.
I guess you are using the Unix API as per:
I haven't done this on unix but should be similar in to windows.
Basically, you connect to Ency, connect as user, do model lock stuff. The demo should compile and let you do things like this.
Here is some sample C code from the windows world (cut and paste from the demos):
//printf("\nConnecting to Ency DB ..."); rc = EApiConnectToEncy((PDBPARMS) "DBNAME=DBCSE DBUSER=ENCYUSR DBPSWD=password");
//printf("\nLogin as user ENCYUSR...");
rc = EApiPasswordValidate((PUSERID) "ENCYUSR",(PPASSWORD) "password");
//printf("\nGet Lock on Model %i ...",modelId); rc = EApiLockModel((MODELID) modelId, 1);
I would look at your listener and see how the IEFMD.ini connects - refer to the UnitParameters field ... use the settings there for the connect to ency. Then utilise whatever user that has the right access to the target model.