Q

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? 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.


This was first published in May 2002

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close