× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Aug 24, 2011, at 1:29 PM, midrange-l-request@xxxxxxxxxxxx wrote:

Never let it be said that I should contradict the list owner <grin> but in this case ...

If you compile a program with the *SOURCE debug view you can access the source code listing ... but I don't think there is a way to extract that from the object (unlike the RTVCLSRC command).

You can't view the source listing David - you can only view the actual source - nothing is stored but a link to the source file.

You might be able to reconstruct the source if you did a DMPOBJ on the program and wrote a program to interpret the output.

Nope - for the reasons stated above. It is one of the reasons I always use Debug Listing *ALL

There are 3rd party products that purport to be able to extract source from a program. I've never tried them though.

I don't believe that there are any currently available for RPG IV that can be run by a customer. Only "service" offerings that are incredibly expensive. Most customers that I have worked with who needed the tool found it significantly cheaper to rewrite the program.

OPM programs stored the MI stream. which included some comments about the operation code being generated for etc. (Even more so for COBOL than RPG) The generated code patterns were identifiable so it was possible to write tools that did a pretty good job of reverse translating. The instruction stream stored with ILE programs (MI prime flavor of W-code) is much more itsy-bitsy, and is probably less predictable in its sequence than the old MI due to the impact of the optimizer. Plus of course IBM have never published the format of W-code so you have do decipher that before anything else.

All in all a rewrite is usually the cheap option!


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.