× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



ILE service program questions
----- Original Message -----
From: Stone, Joel
To: 'RPG400-L@midrange.com'
Sent: Thursday, July 13, 2000 15:41
Subject: ILE service program questions


> When I change the SRVPGM, the mainpgm still runs the old subprocedure.

Sounds like the activation group that the service program is running in is
still active. Instead of recreating the service program, try using the
UPDSRVPGM command instead. If that works, then you're not cleaning up your
activation group(s) properly.

>Why is the subprocedure LOADFIELD1 statically bound, and not dynamic??
(Why doesnt it change
>when I modify the subprocedure and re-create the service pgm)?

You're getting your terminology a bit mixed up. The "External References"
section of the compiler listing that you are talking about has nothing to do
with binding. It is a listing of the static procedure calls that you have
made within the source member.

There are two types of calls within the ILE environment:

1) Dynamic program call: this is the default call type for RPG programs and
is the only method available in RPGIII.

2) Static procedure call: this type of call can only be made to another ILE
procedure. That ILE procedure may exist in the same module, another
(exported) module within the same ILE program (or service pgm), or a it may
be in a separate service program all together.

Binding is a different step of the program creation cycle, and occurs
_after_  your modules have been compiled. Then you have the following two
choices available to you:

1) Bind by copy: the object code of the module being bound is actually
copied into the program being created. This is generally known as "static
binding" in the PC world.

2) Bind by reference: the object code is not copied into the program.
Instead, the program object contains a symbolic link for each procedure that
it calls. When the program is activated, the links are converted to physical
addresses. This is the only type of binding that can be done to a service
program. It is generally known as "dynamic binding" in the PC world.

>How can I debug the sub-procedure using STRDBG?

Name the service program on the SRVPGM parameter of the STRDBG command.


Regards,

John Taylor
Canada

P.S.  - Please drop the HTML. When replying to an HTML message and changing
the format back to text (as per the list guidelines), you have to manually
prefix the text that you're replying to. It's a real pain.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.