MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » December 2013

Re: RTVCLSRC command



fixed

AFaIK [I've never used] the heavy lifting has already been done for the effect, from use of the debug-capable CLLE [ILE CL] programs [prior to the IBM i 7.1 support], using the Debug APIs:

http://iprodeveloper.com/rpg-programming/retrieve-source-ile-modules
Retrieve Source from ILE Modules
Aug. 31, 1997 Chris Stead | System iNEWS Magazine
(You can download NEWS/400 code from <http://www.as400network.com/code> as an AS/400 save file, as separate PC files, or as a PC source code "bundle" file.)
"If you've ever encountered AS/400 objects whose source code is missing, or you couldn't determine which version of the source code was actually running in production, you may find utility RtvSrc a useful little utility. For Integrated Language Environment (ILE) programs and service programs that contain debugging data, RtvSrc uses IBM-supplied debugging APIs to re-create original source code from the debugging data embedded in a program. While utility RtvSrc is useful, you should note that there's a significant "gotcha," which I describe later.
..."

Regards, Chuck

On 11-Dec-2013 10:57 -0800, Vernon Hamberg wrote:
If I understand this suggestion, it CAN work but involves lots of
copy/paste. And the program has to have been compiled with
DBGVIEW(*ALL) or at least DBGVIEW(*LIST) - that way, you'll have the
compile listing in the debug - AND in the object.

That brings up another option - DMPOBJ will contain the entire listing,
IF you compiled with the necessary DBGVIEW setting.

Again, this applies to older versions - Larry has given a new option,
which still depends on compiling with the required parameters.

On 12/11/2013 12:25 PM, Alexei Baranov wrote:
try strdbg

Ketzes, Larry on 11 декабря 2013 г. 21:21 wrote:

I'm more of an administrator/engineer than a programmer, so I
apologize if this is an easy question. I don't have the source to a
CLLE program on a system. I try to execute a RTVCLSRC command, but it
tells me the program is not a cl program. Can I retrieve the source
from a CLLE program?








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact