× 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.



All,

Is there any (relatively easy) way to change the source library for a
*MODULE object after the module has been compiled and bound into a
program, so that debug can work?

Imagine, for instance, that I have an RPGLE module MOD1 which is
compiled from member MOD1 in source library SRCLIB and is then bound
into service program SRVPGM1.

If I then change the name of source library SRCLIB to SRCLIBARC (as part
of our source archiving process), then when I run debug on SRVPGM1 and
try to look at the source for MOD1, the debugger says that the source
cannot be found.

It's always bugged me that when this message appears, the debugger
doesn't allow me to select the source member (now THAT would be useful).

For an OPM program, I can change the source library held within the
object description using the QLICOBJD API. I guess I can also do this
for the *MODULE object itself, but how can I change the details of
SRVPGM1 to update ITS definition of MOD1 to point to the new source
library?

Is Service Tools the only way?

Thanks,

Rory

p.s. I have asked this question in the past, but there was no useful
answer... :-(


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.