0 pts.
 CL AS400 iSeries ILE Retrieve Source
Is there any way to retrieve source for an ILE CL program? I'm looking for a function equivalent to the RTVCLSRC command we use for retrieving the source for a CLP ?

Software/Hardware used:
ASKED: September 21, 2006  9:31 AM
UPDATED: January 6, 2011  7:49 PM

Answer Wiki:
RTVCLSRC The RTVCLSRC command is not allowed against an ILE CL module or program object to retrieve the CLLE source.However, the RTVCLSRC is used within a CLLE module orprogram to retrieve the source from an OPM CL program. http://www.redbooks.ibm.com/redbooks/pdfs/gg244358.pdf I found this at the above URL. Hop it will work this way for you. ========================================================== You cannot retrieve the source of <i>any</i> ILE module unless the source was stored in listing format in the module when the module was compiled. (You can't ever retrieve the source of an ILE program because ILE programs never have any source.) If a listing view was included as a debug option at compile time, the listing can be retrieved. Source can be fairly easily reconstructed from a listing view. Tom
Last Wiki Answer Submitted:  December 17, 2009  7:53 am  by  Walter47   120 pts.
All Answer Wiki Contributors:  Walter47   120 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

thanks, but I was already aware of IBM’s ‘stand’ on this issue …. I was wondering if there was anyone out there that had found a way to get around this ??

 0 pts.

 

There’s a third party tool, RTVILESRC, available free at http://www.geocities.com/~alex_nubla/tips.htm

As long as you can see the source in debug mode then you can retrieve it using the utility.

Hope it helps

Jonathan

 370 pts.

 
 10 pts.

 

astradyne, that link seems to have expired.

 5,670 pts.

 

that link seems to have expired.

If you run STRDBG over the program, is a *LISTING view available? If it is, at worst, you should be able to copy/paste from the screen. If it isn’t, then a valid link won’t help.

You might even try STRCPYSCN to a file, and then scroll through the *LISTING view in debug. Not sure if the two work together. I think iSeries Access emulators allow some kind of auto-copy/paste with append.

The RTVILESRC function might be available somewhere, but the few Google references I tried all failed. That’s why I try not to paste links to sites that don’t have long histories of access.

Tom

 108,055 pts.