× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello David

Tree the free tool downloadable here
http://www.freerpgtools.com/downloads/rtvsrc.html

Worked for me (on 6.1)

Gad

On Wed, Aug 24, 2011 at 9:17 PM, <midrange-l-request@xxxxxxxxxxxx> wrote:

Send MIDRANGE-L mailing list submissions to
midrange-l@xxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.midrange.com/mailman/listinfo/midrange-l
or, via email, send a message with subject or body 'help' to
midrange-l-request@xxxxxxxxxxxx

You can reach the person managing the list at
midrange-l-owner@xxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MIDRANGE-L digest..."


*** NOTE: When replying to this digest message, PLEASE remove all text
unrelated to your reply and change the subject line so it is meaningful.

Today's Topics:

1. Re: Retreiving RPG source at version 7.1 (Charles Wilt)
2. Re: Trigger weirdness with L-Date fields (Jon Paris)
3. Re: Retreiving RPG source at version 7.1 (Jon Paris)
4. Re: AW: Trigger weirdness with L-Date fields (Joe Pluta)
5. Re: Retreiving RPG source at version 7.1 (rob@xxxxxxxxx)
6. Re: Retreiving RPG source at version 7.1
(Blake.Moorcroft@xxxxxxxxxx)
7. RE: Retreiving RPG source at version 7.1 (Terry Anderson)
8. Re: Retreiving RPG source at version 7.1 (Jon Paris)
9. RE: Retreiving RPG source at version 7.1 (Douthat, Trent A)


----------------------------------------------------------------------

message: 1
date: Wed, 24 Aug 2011 13:36:09 -0400
from: Charles Wilt <charles.wilt@xxxxxxxxx>
subject: Re: Retreiving RPG source at version 7.1

David,

It's my understanding that while it's possible to decompile OPM RPG
III, it's basically not possible to do so with ILE RPG IV...

Charles

On Wed, Aug 24, 2011 at 1:15 PM, David Gibbs <david@xxxxxxxxxxxx> wrote:
On 8/24/2011 11:49 AM, ChadB@xxxxxxxxxxxxxxxxxxxx wrote:
A development manager here had read something about an enhancement in i
7.1
that supported retrieving RPG source code from program objects (if they
were compiled a certain way). ?I can't find the documentation now that
he
read about it. ?Is anyone familiar with something of the sort, and if
so,
could you point me towards some type of link to read more about it?

If you compile a program with the *SOURCE debug view you can access the
source code listing ... but I don't think there is a way to extract that
from the object (unlike the RTVCLSRC command).

You might be able to reconstruct the source if you did a DMPOBJ on the
program and wrote a program to interpret the output.

There are 3rd party products that purport to be able to extract source
from a program. ?I've never tried them though.

david

--
IBM i on Power - For when you can't afford to be out of business
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




------------------------------

message: 2
date: Wed, 24 Aug 2011 13:48:11 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: Trigger weirdness with L-Date fields


On Aug 24, 2011, at 1:00 PM, midrange-l-request@xxxxxxxxxxxx wrote:

We copy the record image from the trigger buffer into an externally
defined data structure, so that we can access the fields, a typical
trigger program action.

Nothing to do with your problem (probably) but this is completely
unnecessary. Simply make the externally described DS BASED and set the
pointer for it to the address of the start of the record buffer. No need to
copy anything.



Jon Paris

www.partner400.com
www.SystemiDeveloper.com <http://www.systemideveloper.com/>






------------------------------

message: 3
date: Wed, 24 Aug 2011 13:50:21 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: Retreiving RPG source at version 7.1


On Aug 24, 2011, at 1:29 PM, midrange-l-request@xxxxxxxxxxxx wrote:

Compiling programs with DBGVIEW(*SOURCE)?

No good. All that does is retain a link to the original source. List view
(or *All which gives you list) is the _only_ way to retain a copy of the
source used with the program object.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com <http://www.systemideveloper.com/>






------------------------------

message: 4
date: Wed, 24 Aug 2011 12:57:37 -0500
from: Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>
subject: Re: AW: Trigger weirdness with L-Date fields

On 8/24/2011 11:56 AM, James Lampert wrote:
Joe Pluta wrote:
Which makes no sense. Unless, of course, you aren't really running the
trigger program you think you are running. Which is why you should
check the message, check the job stack, etc. Look for programs with
QRPLOBJ as the library name.
That must have been it. I started with everything fresh on the customer
box, and started with the trigger program completely inert. No data
mapping error.

Ta da! You know how I thought to ask this, right? Many wasted pre-dawn
hours debugging programs that no longer existed... ;)

Joe



------------------------------

message: 5
date: Wed, 24 Aug 2011 13:58:06 -0400
from: rob@xxxxxxxxx
subject: Re: Retreiving RPG source at version 7.1


http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/rzasc/sc09250708.htm#relv7r1


Encrypted listing debug view

When a module's listing debug view is encrypted, the listing view can
only be viewed during a debug session when the person doing the debugging
knows the encryption key. This enables you to send debuggable programs to
your customers without enabling your customers to see your source code
through the listing view. Use the DBGENCKEY parameter on the CRTRPGMOD,
CRTBNDRPG, or CRTSQLRPGI command.


Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Charles Wilt <charles.wilt@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 08/24/2011 01:11 PM
Subject: Re: Retreiving RPG source at version 7.1
Sent by: midrange-l-bounces@xxxxxxxxxxxx



RPG III, or RPG IV?

Nothing new that I'm aware of...it's always been possible to
"decompile" on RPG III...
http://www.juggersoft.com/rpg.htm


RPG IV is another story...there you've always have had to have used
DBGVIEW(*LIST) when creating the program.

Only thing new is that IBM now provides for a way for DBGVIEW(*LIST)
to be encrypted, so that for instance a vendor can ship the object to
a customer secure in knowing that the customer can't see the *LIST
view.

Charles

On Wed, Aug 24, 2011 at 12:49 PM, <ChadB@xxxxxxxxxxxxxxxxxxxx> wrote:


A development manager here had read something about an enhancement in i
7.1
that supported retrieving RPG source code from program objects (if they
were compiled a certain way). I can't find the documentation now that
he
read about it. Is anyone familiar with something of the sort, and if
so,
could you point me towards some type of link to read more about it?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




------------------------------

message: 6
date: Wed, 24 Aug 2011 14:06:26 -0400
from: Blake.Moorcroft@xxxxxxxxxx
subject: Re: Retreiving RPG source at version 7.1

Hello all...

There was a bit of code done up by J.R. Friedman, listed at the site
below, that permits the retrieval of RPG ILE source, assuming a create
bind command with *LIST on the debug view parm.

http://search400.techtarget.com/tip/How-to-retrieve-the-RPGLE-source

We have it here for use in emergency and have used it once or twice. Works
well. The article details were first published in February, 2004.


Have a good day.


Blake Moorcroft
Analyst/Programmer - Corporate
Russell A. Farrow Limited
2001 Huron Church Road, PO Box 333, Windsor, Ontario N9A 2L6
Bus: 519-966-3003 ext. 566
blake.moorcroft@xxxxxxxxxx




Charles Wilt <charles.wilt@xxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
08/24/2011 01:36 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Retreiving RPG source at version 7.1






David,

It's my understanding that while it's possible to decompile OPM RPG
III, it's basically not possible to do so with ILE RPG IV...

Charles

On Wed, Aug 24, 2011 at 1:15 PM, David Gibbs <david@xxxxxxxxxxxx> wrote:
On 8/24/2011 11:49 AM, ChadB@xxxxxxxxxxxxxxxxxxxx wrote:
A development manager here had read something about an enhancement in i
7.1
that supported retrieving RPG source code from program objects (if they
were compiled a certain way). I can't find the documentation now that
he
read about it. Is anyone familiar with something of the sort, and if
so,
could you point me towards some type of link to read more about it?

If you compile a program with the *SOURCE debug view you can access the
source code listing ... but I don't think there is a way to extract that
from the object (unlike the RTVCLSRC command).

You might be able to reconstruct the source if you did a DMPOBJ on the
program and wrote a program to interpret the output.

There are 3rd party products that purport to be able to extract source
from a program. I've never tried them though.

david

--
IBM i on Power - For when you can't afford to be out of business
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





Celebrating a Century of Excellence and once again named one of Canada's
50 Best Managed Companies!

This electronic message contains information from Russell A. Farrow
Limited, Russell A. Farrow (U.S.) Inc., canadaplus.com or RAF Express
Inc., that may be confidential or privileged. The information in this
electronic message is only for the use of the intended recipient.
Inappropriate disclosure, copying, distribution or other use of the
contents of this electronic message is strictly prohibited. If you have
received this electronic transmission in error, please notify the sender
immediately by return e-mail. Thank you.

------------------------------

message: 7
date: Wed, 24 Aug 2011 13:09:48 -0500
from: "Terry Anderson" <TAnderson@xxxxxxxxx>
subject: RE: Retreiving RPG source at version 7.1


Chad,
See if this is what you are looking for:

http://www.freerpgtools.com/downloads/rtvsrc.html

Its Been around since 2007 and I have been using it since around 2008.
If I remember right, the RPGLE source has to be compiled with something
other than *SOURCE.


Terry Anderson
Programming Manager
Grede LLC.
Switchboard 1.251.867.5481 ext 212
Direct Line 1.251.809.2312
Fax 251.867.0525
Cell 1.251.363.4975


------------------------------

message: 9
date: Wed, 24 Aug 2011 12:49:03 -0400
from: ChadB@xxxxxxxxxxxxxxxxxxxx
subject: Retreiving RPG source at version 7.1



A development manager here had read something about an enhancement in i
7.1
that supported retrieving RPG source code from program objects (if they
were compiled a certain way). I can't find the documentation now that
he
read about it. Is anyone familiar with something of the sort, and if
so,
could you point me towards some type of link to read more about it?



------------------------------

message: 8
date: Wed, 24 Aug 2011 14:12:56 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: Retreiving RPG source at version 7.1


On Aug 24, 2011, at 1:29 PM, midrange-l-request@xxxxxxxxxxxx wrote:

Never let it be said that I should contradict the list owner <grin> but in
this case ...

If you compile a program with the *SOURCE debug view you can access the
source code listing ... but I don't think there is a way to extract that
from the object (unlike the RTVCLSRC command).

You can't view the source listing David - you can only view the actual
source - nothing is stored but a link to the source file.

You might be able to reconstruct the source if you did a DMPOBJ on the
program and wrote a program to interpret the output.

Nope - for the reasons stated above. It is one of the reasons I always use
Debug Listing *ALL

There are 3rd party products that purport to be able to extract source
from a program. I've never tried them though.

I don't believe that there are any currently available for RPG IV that can
be run by a customer. Only "service" offerings that are incredibly
expensive. Most customers that I have worked with who needed the tool found
it significantly cheaper to rewrite the program.

OPM programs stored the MI stream. which included some comments about the
operation code being generated for etc. (Even more so for COBOL than RPG)
The generated code patterns were identifiable so it was possible to write
tools that did a pretty good job of reverse translating. The instruction
stream stored with ILE programs (MI prime flavor of W-code) is much more
itsy-bitsy, and is probably less predictable in its sequence than the old MI
due to the impact of the optimizer. Plus of course IBM have never published
the format of W-code so you have do decipher that before anything else.

All in all a rewrite is usually the cheap option!


Jon Paris

www.partner400.com
www.SystemiDeveloper.com <http://www.systemideveloper.com/>






------------------------------

message: 9
date: Wed, 24 Aug 2011 14:17:12 -0400
from: "Douthat, Trent A" <trent.douthat@xxxxxxxxxxx>
subject: RE: Retreiving RPG source at version 7.1

On a similar note, we use the RTVSRC tool by Chris Stead when we've
"misplaced" source code in a test library. It has been a life saver on more
than one occasion.

Here's where to get the tool:
http://www.pentontech.com/IBMContent/Documents/article/54224_179_RtvSrc.zip




-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:
midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Blake.Moorcroft@xxxxxxxxxx
Sent: Wednesday, August 24, 2011 1:06 PM
To: Midrange Systems Technical Discussion
Subject: Re: Retreiving RPG source at version 7.1

Hello all...

There was a bit of code done up by J.R. Friedman, listed at the site below,
that permits the retrieval of RPG ILE source, assuming a create bind command
with *LIST on the debug view parm.

http://search400.techtarget.com/tip/How-to-retrieve-the-RPGLE-source

We have it here for use in emergency and have used it once or twice. Works
well. The article details were first published in February, 2004.


Have a good day.


Blake Moorcroft
Analyst/Programmer - Corporate
Russell A. Farrow Limited
2001 Huron Church Road, PO Box 333, Windsor, Ontario N9A 2L6
Bus: 519-966-3003 ext. 566
blake.moorcroft@xxxxxxxxxx




Charles Wilt <charles.wilt@xxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
08/24/2011 01:36 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Retreiving RPG source at version 7.1






David,

It's my understanding that while it's possible to decompile OPM RPG
III, it's basically not possible to do so with ILE RPG IV...

Charles

On Wed, Aug 24, 2011 at 1:15 PM, David Gibbs <david@xxxxxxxxxxxx> wrote:
On 8/24/2011 11:49 AM, ChadB@xxxxxxxxxxxxxxxxxxxx wrote:
A development manager here had read something about an enhancement in i
7.1
that supported retrieving RPG source code from program objects (if they
were compiled a certain way). I can't find the documentation now that
he
read about it. Is anyone familiar with something of the sort, and if
so,
could you point me towards some type of link to read more about it?

If you compile a program with the *SOURCE debug view you can access the
source code listing ... but I don't think there is a way to extract that
from the object (unlike the RTVCLSRC command).

You might be able to reconstruct the source if you did a DMPOBJ on the
program and wrote a program to interpret the output.

There are 3rd party products that purport to be able to extract source
from a program. I've never tried them though.

david

--
IBM i on Power - For when you can't afford to be out of business
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





Celebrating a Century of Excellence and once again named one of Canada's
50 Best Managed Companies!

This electronic message contains information from Russell A. Farrow
Limited, Russell A. Farrow (U.S.) Inc., canadaplus.com or RAF Express
Inc., that may be confidential or privileged. The information in this
electronic message is only for the use of the intended recipient.
Inappropriate disclosure, copying, distribution or other use of the
contents of this electronic message is strictly prohibited. If you have
received this electronic transmission in error, please notify the sender
immediately by return e-mail. Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



------------------------------

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



End of MIDRANGE-L Digest, Vol 10, Issue 1162
********************************************


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.