CL AS400 iSeries ILE Retrieve Source

Application development
Backup and Recovery
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 ?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

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.


Discuss This Question: 5  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • RIRedCheryl
    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 pointsBadges:
  • astradyne
    There's a third party tool, RTVILESRC, available free at As long as you can see the source in debug mode then you can retrieve it using the utility. Hope it helps Jonathan
    370 pointsBadges:
  • Gulabraj
    10 pointsBadges:
  • Splat
    astradyne, that link seems to have expired.
    12,915 pointsBadges:
  • TomLiotta
    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
    125,585 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: