using EXTPGM will always be a "dynamic" binding, same as using a CALL
opcode. so the compiler doesn't check for the external object.
Thanks,
Tommy Holden
From:
Bryce Martin <BMartin@xxxxxxxxxxxx>
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
05/22/2009 09:43 AM
Subject:
Re: EXTPGM keyword
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx
To verify what Alan just said. I had a module up that I just compiled
that a PR with extpgm. I changed it to one that didn't exist and it still
compiled. This value must only be checked at run time. I always assumed,
like you David, that the compiler would have done a verification. It
obviously isn't doing any kind of binding to that external program if this
is the case so it doesn't matter to the Module when it gets created. I
would recommend that it be there before you use the module to call it
though ;)
Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777
Alan Campin <alan0307d@xxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
05/22/2009 10:22 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
"RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: EXTPGM keyword
The compiler just want some value. It doesn't seem to care what it is.
On Fri, May 22, 2009 at 8:20 AM, David FOXWELL
<David.FOXWELL@xxxxxxxxx>wrote:
Hi,
I just opened up a source member that I need to modify and found this.
D Prc PR EXTPGM ( 'XXX210' )
D Parm1 etc
D Parm2 etc
D Prc PI
D Parm1 etc
D Parm2 etc
Just realised I don't fully understand EXTPGM as XXX210 is obviously an
error. The source, module and program are all named XXX110.
Would somebody care to enlighten me?
Thanks.
--- This message (including any attachments) is intended only for the use
of the individual or entity to which it is addressed and may contain
information that is non-public, proprietary, privileged, confidential, and
exempt from disclosure under applicable law. If you are not the intended
recipient, you are hereby notified that any use, dissemination,
distribution, or copying of this communication is strictly prohibited. If
you have received this communication in error, please notify us and
destroy this message immediately. ---
As an Amazon Associate we earn from qualifying purchases.