Do you mean this thing?
CRTPGM PGM(FOO) BNDSRVPGM((*LIBL/BAR *DEFER))
Honestly, I haven't played around with that option, so I don't know if
it checks for the *SRVPGM existence when the *PGM is activated? But I
know (from the docs) that when you specify *DEFER, the *SRVPGM isn't
activated until it's used. So maybe it's not resolved until then, either?
At any rate, instead of using traditional ILE binding, you can always
use APIs to resolve/activate/call the srvpgm manually. Then you can
choose when you resolve/activate/call, since it's all done in your code.
I'm not recommending that, mind you. I'm just telling you that it's
On 12/22/2011 5:01 PM, James Lampert wrote:
Given a program that, depending on circumstances, may or may not call
anything in a given service program to which it is linked, is it
possible to defer checking for the existence of the service program
until a call is made to it?
I'd RTFM, but I'm not entirely sure which FM to R.