Home > Blogs > I THINK THEREFORE IBM-i blogs › IBMi External Procedures calling from *LIBL or specific library

I THINK THEREFORE IBM-i blogs › IBMi External Procedures calling from *LIBL or specific library

June 7th, 2012
External procedures are very tasty

Turnover (the one written by Softlandings that does Change Management, not the one that is full of apple and tastes delicious) is a pretty cool software control application native to IBMi. But of course, you already knew that. But did you know that you can promote an EXTERNAL PROCEDURE to a specific library and then have it invoke its program component from that library, or from any library that you care to define to Turnover or of course from the *LIBL?

It's all down to these basic rules:

  1. &LIBRARY is the variable that TURNOVER will replace with the name of your target library during promotion
  2. if you quote the procedure name (ie: 'program') then it must have either a hardcoded library ('QGPL/THING') or the variable ('&LIBRARY/THING)
  3. If not quotes (ie: EXTERNAL NAME THING) then *LIBL will be used to call the THING program

Example *EXTPRC using &LIBRARY VARIABLE:

 


Read the original at I THINK THEREFORE IBM-i blogs.

Categories: Blogs Tags:
Comments are closed.
css.php