getting source from object on AS400

15 pts.
Tags:
AS/400 Reports
I have a customer who has no source for a program but has a object and is at 4.5 of the os. Is there a tool or way that I can get the source back on the cle or rpg program?

Software/Hardware used:
AS400 4.5
ASKED: April 26, 2010  12:51 PM
UPDATED: November 23, 2010  3:19 PM

Answer Wiki

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

It depends on how the objects were compiled. Assume a program named PGMA. Try STRDBG PGMA to see if a listing view is presented. (We can assume that a source view won’t be presented. And the library might need to be specified too.) If one shows up, then it’s fairly easy, though potentially tedious, to retrieve the source from the listing view.

The question asks about “cle”, which would normally mean “ILE C”, and about “rpg”, which would normally mean “OPM RPG” which might be RPG II, RPG III or RPG/400. Variations might be necessary if any of those are not what was meant.
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
  • ToddN2000
    If you cannot find the source by using DSPOBJD option 8 to find out where it should be located, then I'd try the debug option mentioned above. Depending on the program in question, check to see if the source code libraries are backed up on tape somewhere. If this code was not written by your company you most likely are out of luck. Most vendors will not supply their code or a way of viewing it to protect their property rights.
    6,360 pointsBadges:
    report
  • gfprogrammer
    There is a command RTVCLSRC that might retrieve the CL source.
    240 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