Recover the coding of a program
Is their any way to recover the coding of a program from the objlib, if the program in my srclib is been deleted?...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
Can this be done through FTP or other resources?
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.
Dig Deeper on Implementation
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Meet all of our AS/400 experts
View all AS/400 questions and answers
Start the conversation
0 comments