You can retrieve the source from a compiled CLP if it was compiled as follows:
CRTCLPGM PGM(PGMLIB/PGM) ALWRTVSRC(*YES)
Use the following command to retrieve the source from the compiled CLP:
RTVCLSRC PGM(PGMLIB/PGM) SRCFILE(YOURSRCLIB/YOURSRC) SRCMBR(*PGM)
A copy of the program's source statements will be placed in the source file you specified. Unfortunately, all program "comments" are lost since they are not saved in a compiled CLP object.
Note: This technique can only be used on CLPs. I have heard of third-party programs that can de-compile RPG programs, but OS/400 doesn't make this functionality in the base operating system.
================================== MORE INFORMATION ON THIS TOPIC ==================================
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions--or help out your peers by answering them--in our live OS/400 discussion forums.
OS/400 Discussion Forum: Post your questions, and get answers from other iSeries users as well as search400 experts.
Search400's targeted search engine: Get relevant information on V5R1.
This was first published in May 2002