View Full Version : Creating source from obj
01-01-1995, 02:00 AM
If I have lost the source and only object is available, can I create source from the object? Could somebody help?
05-30-2000, 10:56 AM
Mohammad, If this is a CLP object, you can run the RTVCLSRC command. This will build a source member with the name and library you supply, minus the comments. If this is an RPG member, you need to contact a vendor for this. There are several vendors who will perform this free the first time, or charge a fee for each source. There are also software packages you can purchase and keep on your machine just for this emergency. I don't have any numbers for you, but if you perform a search from the discussions page, you should be able to find out. You might also go to www.search400.com and search for decompilers. In any case, you will still lose the comment lines as they are not stored in the compiled object. Hope this helps, Bret Myrick
05-30-2000, 11:02 AM
Mohammad, I followed up on my own advice and used the MC search engine looking for DECOMPILERS. I found a reference from Ted Holt that names a company called Source Retreival at www.sourceretrieval.com as a company that provides this service. There was a later reference that made mention that RPGLE is on a one source at a time basis, as they do not yet sell a product to decompile RPGLE objects and cannot guarantee 100% of the programs are compatible with their process. Hope this helps some more, Bret Myrick
05-30-2000, 11:05 AM
Here it is again, straight from the NEWS/400 Tips & Tech Newsletter dated April 12, 2000: RETRIEVING SOURCE FROM COMPILED OBJECTS RETRIEVING CL SOURCE Use OS/400's Retrieve CL Source (RTVCLSRC) command. The object code must be an OPM program compiled with ALWRTVSRC of *YES (RTVCLSRC can't retrieve source for ILE CL programs and modules). For programs compiled with ALWRTVSRC of *NO, use SourceRetrieval's (http://www.sourceretrieval.com) DOC CLP product. RETRIEVING DDS SOURCE The free Retrieve Database Source (RTVDBSRC) command re-creates a DDS source member from an existing physical or logical file. The utility source and compile instructions can be downloaded from http://www.geocities.com/~alex_nubla/rtvdbsrc.htm . Another utility that re-creates DDS for physical or logical files is the QUSRTOOL Retrieve Physical File Source (RTVPFSRC) command. QUSRTOOL was free in V3R1 and previous releases of OS/400; for later versions of OS/400, it's now sold as TAA Productivity Tools from http://www.taatool.com . SourceRetrieval's DOC DDS (http://www.sourceretrieval.com) can re- create source for compiled DDS physical, logical, printer, and display files. RETRIEVING RPG SOURCE NEWS/400 published utility Retrieve Source (RTVSRC), which retrieves source from ILE programs, in September 1997. The catch is that the program had to have had the proper debugging view specified when the program's bound modules were created. Professional members of the AS400 Network can read the online article at http://www.as400network.com/artarchive/index.cfm?fuseaction=viewarticle&CO_Conte ntID=2097, and everyone can download the source from http://www.as400network.com/resources/code/. SourceRetrieval's DOC RPG (http://www.sourceretrieval.com) can retrieve source for observable RPG/36, RPG/38, and RPG/400 program objects, and DOC NOP generates new RPG source members from compiled RPG program objects that have had observability removed. RETRIEVING COBOL SOURCE SourceRetrieval (http://www.sourceretrieval.com) can retrieve source for observable RPG/36, RPG/38, and COBOL/400 program objects.
05-30-2000, 07:40 PM
What kind of object; file, display file , printer file, CL Program, RPG or what...? bobh
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.