RTVSRC: Finding the RPG38 source

370 pts.
Tags:
AS/400
AS/400 programming
QRPGSRC
RPG
RPG Program
I know this is very old question but I can not find tool on internet. I have one rpg38 program compiledĀ on V1R7. The program compiled form QRPGSRC/LIBTEST but looks like LIBTEST was deleted. Now how can I find the this RPG38 source.

Thanks,

Ali



Software/Hardware used:
AS/400

Answer Wiki

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

If the program was compiled with DBGVIEW(*LIST), you can STRCPYSCN to an *outfile. Then you can scroll through the listing without needing to copy/paste. Some editing of the resulting *outfile leaves just the “source”.
*
Try to find the library on a backup tape.
*
Check every PF-SRC files on the system to find that member name.

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.

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
  • Alicsc
    I already searched all source files in all libraries but let me check again. Will try 1st option also but I do not think it was compiled with *list but let me check. backup tape, object was last changed in 1987..lol Thanks Charlie
    370 pointsBadges:
    report
  • TomLiotta
    Note that a program compiled at V1R7 would almost have to refer to Release 7 of CPF. I don't have the S/38 command available to see what the debug options were, but I'd expect something more like OPTION(*SRCDBG). In any case, seeing what appears on screen after STRDBG OPMSRC(*YES) against the program will probably give the best chance if anything will work at all. Tom
    125,585 pointsBadges:
    report
  • Alicsc
    Used STRCPYSCN but its only copying screen data ( display file ). Tried already strdbg , can not see source. Still searching all pf-src..lets see.
    370 pointsBadges:
    report
  • TomLiotta
    Tried already strdbg , can not see source. If you run DSPPGM against the program, it will tell you where the source was when the program was compiled. If that source file, member or library doesn't exist on your system, then searching for all source members and looking at them is the only choice that you have. You might run DMPOBJ for the compiled *PGM and scroll through the spooled file. Sometimes you can find variable names or constants that you can use in FNDSTRPDM or similar commands. That can possibly help narrow the search. Tom
    125,585 pointsBadges:
    report
  • Alicsc
    [...] CharlieBrowne and TomLiotta gave their best tips for finding the RPG38 source after the LIBTEST has been deleted. 6. TomLiotta, CharlieBrowne, and Bvining have come together to [...]
    0 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