Hi, Alan:

There is no way to diretly bind to (dynamically or statically) an OPM (Original Program Model) CLP *PGM to an ILE *MODULE or *SRVPGM. It is simply not supported by IBM.

There are two worlds in OS/400 or i5/OS, the Original Program Model (OPM) and the Integrated Language Environment (ILE) which is also known internally as the New Program Model (NPM).

However, there is an API named QZRUCLSP that will allow you to dynamically load and call an entry point within a service program from any other program. So, if you use this API from within your OPM CLP *PGM, you can get there.

But, why not just change your program from CLP to CLLE?

All the best,

Mark S. Waterbury

> Alan Shore wrote:
Hi Scott
The problem was NOT with MKS
MKS realizes that the source member type is CLP and we have it so that it
will use the command CRTCLPGM
My original question was how to call a sub-procedure from a service program
from within a CLP program
How do I bind the binding directory
The answer was to use the command CRTPGM
This lead to my statement that you replied to
How can I apply a binding directory when using the CRTCLPGM command
Hopefully you can now see my predicament



Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxxxxx
P:(631) 244-2000 ext. 5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill

midrange-l-bounces@xxxxxxxxxxxx wrote on 11/04/2008 12:31:50 PM:

What on earth do you mean when you keep saying "for a CL (or CLLE)".
You understand that CLLE is the source member type for ILE CL. CLP is
the source member type for OPM CL.

Since you're clearly using ILE concepts, you don't have a choice between
CL or CLLE. It *must* be source member type CLLE.

I find it very hard to believe that MKS implementer doesn't support ILE
CL -- after all, it has been 12 years since ILE CL was released.

Alan Shore wrote:
I have found that missing parameter is causing me a headache
We use MKS implementer and for a CL (or CLLE) program, it automatically
uses the CRTCLPGM command
Cannot apply the BNDDIR
For the moment, I am stumped
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.