retrieve deleted RPGLE source file

135 pts.
Tags:
AS/400
RPGLE
RPGLE retrieval
Can smone pls tell is it possible to retrieve source of a rpgle program and if atll possible hw is it possible

Software/Hardware used:
as 400

Answer Wiki

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

The first and best option is to restore from backups of your source files.

Second option could start by issuing STRDBG for the program to see of a source or listing debug view appears. Of course, if a source view appears, then the source wasn’t really deleted — it’s simply not where it was thought to be. If a listing view appears, then the worst that would happen would be that source could be copied from the screens as you scrolled through them. (I’d probably do a STRCPYSCN to an outfile and scroll only to the bottom of the source section. I’d recover the “source” from the outfile.)

I haven’t seen any source recovery services for recent versions of the operating system; and the last time I did a quick search, I didn’t find any in the first 100 Google links. They might exist.

If you have no backups of the source, and there are no development environment or alternative source locations, and the compiled object doesn’t have a listing view, then an outsider might wonder if the program belonged to someone else. That might be part of why few source recovery services remain.

Tom

Discuss This Question: 2  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Teandy
    Google for a program called RTVSRC. If your are trying to recover an RPGILE program and it was compiled with a debug view of anything OTHER than SOURCE, then RTVSRC can recover the source code.
    5,860 pointsBadges:
    report
  • TomLiotta
    ...it was compiled with a debug view of anything OTHER than SOURCE, then RTVSRC can recover the source code. RTVSRC requires either DBGVIEW(*ALL) or at least DBGVIEW(*LISTING) to recover source. Obviously, a *SOURCE view is pointless since the source must exist anyway and wouldn't need to be recovered. DBGVIEW(*ALL) works because it includes *LISTING. In short, regardless of how many types ov debug views are included, the *LISTING view is the only one that matters. If that one's missing, then RTVSRC has nothing to work with. The default DBGVIEW(*STMT) doesn't provide sufficient information to recover source -- it only tracks statements at essentially the MI level, well below the source level. It should be noted for accuracy that ILE programs don't actually have source. Only modules have source. But that's something of a technicality considering the question. Tom
    125,585 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following