Midrange News for the IBM i Community


Posted by: Dave Jameson
EIM API's
has no ratings.
Published: 02 Feb 2016
Revised: 10 Feb 2016 - 526 days ago
Last viewed on: 20 Jul 2017 (1151 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

EIM API's Published by: Dave Jameson on 02 Feb 2016 view comments(2)

I'm trying to setup users in EIM using the API's in RPG.  The examples I have found are in C refernce variables like EIM_SOURCE and EIM_TARGET and I can't figure out where they get a value.  Anyone have any EIM examples in RPG? 

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: EIM API's
Posted: 1 years 5 months 18 days 1 hours 42 minutes ago
Edited: Tue, 02 Feb, 2016 at 15:49:33 (534 days ago)

Hi Dave,

Most of the APIs are delivered as C prototypes and #defines.

They can be located in the H file in library QSYSINC.

The prototypes and defines you are looking for are in source member QSYSINC/H(EIM)

The EIM_SOURCE and EIM_TARGET defines are actually "enumerated" values. From the include member, I see that they probably equate to the following:

EIM_SOURCE = 2

EIM_TARGET = 1

EIM_SOURCE_AND_TARGET = 3

EIM_ALL_ASSOC = 0

Usually those things start at 0 and go up 1 for each enum entry. So this is my best guess.

Normally I would be the one to prototype the APIs in RPG-syntax, because IBM never does. However I've never needed the EIM APIs so I haven't done that. But I'm sure you can probably do that yourself.

 

Posted by: davwjam
Premium member *
Comment on: EIM API's
Posted: 1 years 5 months 10 days 8 hours 21 minutes ago

Thanks Bob that helped a lot.