+ Reply to Thread
Results 1 to 5 of 5

Thread: Creating source from obj

  1. #1
    Guest.Visitor Guest

    Default Creating source from obj

    If I have lost the source and only object is available, can I create source from the object? Could somebody help?

  2. #2
    B.Myrick Guest

    Default Creating source from obj

    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

  3. #3
    B.Myrick Guest

    Default Creating source from obj

    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

  4. #4

    Default Creating source from obj

    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/artarchi...ticle&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.

  5. #5
    Guest.Visitor Guest

    Default Creating source from obj

    What kind of object; file, display file , printer file, CL Program, RPG or what...? bobh

+ Reply to Thread

Similar Threads

  1. Convert RPG36 program source code to RPG/400 source code
    By Guest.Visitor in forum Programming
    Replies: 9
    Last Post: 04-16-2001, 09:40 AM
  2. Creating Commands
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 3
    Last Post: 02-12-2001, 12:38 AM
  3. Creating XML on AS/400
    By Guest.Visitor in forum Application Software
    Replies: 9
    Last Post: 09-19-2000, 12:54 PM
  4. Creating your own BIF
    By J.Wells in forum Programming
    Replies: 7
    Last Post: 06-26-2000, 12:57 PM
  5. Creating Help
    By Guest.Visitor in forum Programming
    Replies: 18
    Last Post: 11-05-1998, 01:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts