+ Reply to Thread
Results 1 to 6 of 6

Thread: Retrieve RPGLE source from object

  1. #1
    Administrator jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief Now you can put ILE on your resume jamief's Avatar
    Join Date
    Jan 2004
    Location
    Illinois
    Age
    45
    Posts
    7,212
    Rep Power
    9161

    Retrieve RPGLE source from object

    Just found this thought it could be of some use (attachment)
    by JR Friedman

    Code:
    It is possible to retrieve source from RPG programs if the program has been
     compiled with the correct parameters. The following procedure will retrieve the 
    source from single-module RPGLE programs compiled with CRTBNDRPG with
     DBGVIEW(*LIST).
    
    We have changed our command default to this option to allow debugging on our 
    production machine, which does not contain program source. The program could 
    be modified to handle RPG III programs compiled with OPTION(*LSTDBG) and 
    multiple module ILE programs. As far as I know, the retrieval works with the
    exception of list directives (i.e. /EJECT) and color/highlight special characters.
    Attached Files
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  2. #2
    Code400 Newbie gwilburn How long am I stuck at *ZEROS?
    Join Date
    Dec 2009
    Location
    Maryland
    Posts
    32
    Rep Power
    88

    Re: Retrieve RPGLE source from object

    Quote Originally Posted by jamief View Post
    Just found this thought it could be of some use (attachment)
    by JR Friedman

    Code:
    It is possible to retrieve source from RPG programs if the program has been
     compiled with the correct parameters. The following procedure will retrieve the 
    source from single-module RPGLE programs compiled with CRTBNDRPG with
     DBGVIEW(*LIST).
    
    We have changed our command default to this option to allow debugging on our 
    production machine, which does not contain program source. The program could 
    be modified to handle RPG III programs compiled with OPTION(*LSTDBG) and 
    multiple module ILE programs. As far as I know, the retrieval works with the
    exception of list directives (i.e. /EJECT) and color/highlight special characters.
    Jamie - is this safe to use? I need to retreive CLLE source

  3. #3
    Analyst GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400's Avatar
    Join Date
    May 2006
    Location
    connecticut
    Posts
    1,125
    Rep Power
    3103

    Re: Retrieve RPGLE source from object

    Hi gwilburn:

    try the command rtvclsrc

    Best of Luck
    GLS
    The difference between stupidity and genius is that genius has its limits......Albert Einstien

  4. #4
    Code400 Newbie gwilburn How long am I stuck at *ZEROS?
    Join Date
    Dec 2009
    Location
    Maryland
    Posts
    32
    Rep Power
    88

    Re: Retrieve RPGLE source from object

    This does not work with CLLE only CLP

  5. #5
    Analyst GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400 Your starting to get annoying GLS400's Avatar
    Join Date
    May 2006
    Location
    connecticut
    Posts
    1,125
    Rep Power
    3103

    Re: Retrieve RPGLE source from object

    I think rtvrpgsrc is rpg specific. (not sure)......Try debug and copy/paste.

    Best of Luck
    GLS
    The difference between stupidity and genius is that genius has its limits......Albert Einstien

  6. #6
    Analyst JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy Whats the funny smell? JonBoy's Avatar
    Join Date
    Jun 2005
    Location
    Mississauga, Ontario, Canada
    Posts
    284
    Rep Power
    987

    Re: Retrieve RPGLE source from object

    Quote Originally Posted by GLS400 View Post
    I think rtvrpgsrc is rpg specific. (not sure)......Try debug and copy/paste.

    Best of Luck
    GLS
    It is.

    Just to offer a suggestion - a lot of people do not like debugging at the listing level - finding that there is just too much "stuff". This retrieval method works if the *LIST view is present - which is why I recommend the use of *ALL for the debug view. The resulting object is very slightly larger, but as usual there is no effect on run time memory usage. This way you can debug using either *Source or *List views and have the ability to recover the source.

    Also worth pointing out that this is a lousy substitute for a backup and version control strategy - way too dangerous as it can be screwed by any programmer who sets up their own custom PDM compile option and specifies their own personal favorite for the debug view.

+ Reply to Thread

Similar Threads

  1. Create fancy reports & email them
    By lwells in forum RPG/RPGLE
    Replies: 31
    Last Post: October 9th, 2008, 03:50 PM
  2. retrieve the source file/lib from object
    By GLS400 in forum RPG/RPGLE
    Replies: 11
    Last Post: October 25th, 2006, 10:10 AM
  3. Replies: 0
    Last Post: May 24th, 2006, 03:39 PM
  4. The rename object API QLIRNMO
    By jamief in forum /Free format
    Replies: 5
    Last Post: April 26th, 2006, 10:52 AM
  5. Replies: 8
    Last Post: June 17th, 2005, 02:44 PM

Bookmarks

Bookmarks

Posting Permissions

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