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



I agreed with you that IBM should provided a way to change the source location 
in STRDBG command.

However, I don't think is such a good idea to tamper with the object level 
info.  Those info should stay the way that the object was created and I expect 
it to be just that when I do DSPOBJD.

An easy solution would be just copy the source to the library where it compile 
from.  
A better solution is to compile with debug view of *LIST or *ALL.  This will 
ensure that the source you look at in the debugger is the source you compile 
with.  Also, if you lost the source, you can get it back using a free utility 
RTVSRC.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Hewitt, Rory
Sent: Tuesday, January 18, 2005 7:07 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Trying to change *MODULE object source library


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... :-(

-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.