A book that was often suggested to me, but I think I never cracked, was
"ILE Concepts". It might have saved me a lot of grief.

Do you program in CL and/or RPG?
I'm more familiar with this in RPG.
CL has come a long ways from it's languishing years. If you do it in CLLE
you will be looking at the CALLPRC command. That integer they return? You
will see that with "CL variable for returned value RTNVAL". The trick
is binding CL to the service program. It can be done. Instead of using
CRTCLPGM you use CRTCLMOD. Then you take that module object and join them
together with something like
CRTPGM PGM(MYLIB/MYPGM) MODULE(MYLIB/MYCLMODULE) BNDSRVPGM((QSYS/QSYEIM))
Or you can use a "binding directory"
CRTPGM PGM(MYLIB/MYPGM) MODULE(MYLIB/MYCLMODULE) BNDDIR(MYLIB/MYBINDDIR)
If you go that way see also: CRTBNDDIR, WRKBNDDIR, ADDBNDDIRE
Making a choice on BNDSRVPGM and BNDDIR takes a few war wounds.
There's actually a whole other language called "binder language". Actually
I couldn't grasp how easy it was. It was so easy it was difficult. I
actually read the "Who knew you could do that with RPG?" redbook, we
contracted Jon Paris to come on site and teach a class on this stuff and
then I went to COMMON. That's where it finally clicked on me that it was
really this simple. After all, the language only contains three commands.
I still have the redbook. Autographed by Jon and his wife Susan.

Try this command
DSPSRVPGM SRVPGM(QSYS/QSYEIM) DETAIL(*PROCEXP)
and you will see how you can find eimAddAssociation


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.