Full disclosure...I don't do C++..but had a need for exactly what you are wanting.
I took the API example code with minor changes compiled it called it for CLLE.
In a few minutes I will send you a save file via email with the source.
Monty
from: "Steinmetz, Paul" <PSteinmetz@xxxxxxxxxx>
subject: RE: SSO - creating EIM source associations in batch
I've identified the EIM API needed to do this.
eimAddAssociation()--Add EIM Association
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ibm.com_support_knowledgecenter_ssw-5Fibm-5Fi-5F71_apis_eimaddassociation.htm&d=DwICAg&c=AY-yVZ-DdqDeX_Emj_gQCkuxsL_QuG_4YQ-FxcTYVkY&r=3HmdsZESHvzaTBSHTdB6CStwTAVF1kiyCWu3SC-2oh0&m=Bvj-I7DnM77zsLJulaiLD7P498fkyNS9t-A4WlYJtNs&s=3mot8dZ416y2kUuNaZs1fFtDECc4klXFAEV1_zLfMqY&e=
This cannot be called directly, since it is a service program.
Service Program Name: QSYS/QSYEIM
I've never worked with service programs, and we only use a few here.
I'm looking for an example for this API, either CL or RPGLE.
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Monday, March 20, 2017 12:23 AM
To: Midrange Systems Technical Discussion
Subject: Re: SSO - creating EIM source associations in batch
There are APIs for EIM that can do all the stuff you want - I think someone gave you the path through Knowledge Center to get to them.
On 3/18/2017 8:35 PM, Steinmetz, Paul wrote:
I've discovered how to create the EIM identifier and target association in batch.
CHGUSRPRF USRPRF(PAULS) EIMASSOC('Paul Steinmetz' *TARGET *ADD
*CRTEIMID)
I'm looking for a method to also create the *source association.
Thank You
_____
Paul Steinmetz
IBM i Systems Administrator
Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071
610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home
psteinmetz@xxxxxxxxxx
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.pencor.com_&d=
DwICAg&c=AY-yVZ-DdqDeX_Emj_gQCkuxsL_QuG_4YQ-FxcTYVkY&r=3HmdsZESHvzaTBS
HTdB6CStwTAVF1kiyCWu3SC-2oh0&m=Bvj-I7DnM77zsLJulaiLD7P498fkyNS9t-A4WlY
JtNs&s=_4o8qCj8UNXavhBhGjwWyH1PJvfAzUBWTnAFZGW9ltQ&e=
________________________________
This email message, including any attachment(s) is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is strictly prohibited. If you are not the intended recipient, please immediately contact the sender by email.
As an Amazon Associate we earn from qualifying purchases.