Many, many moons ago, one of the magazines (ah - the good old days!) published a utility that used the debugger APIs (https://www.ibm.com/docs/en/i/7.4.0?topic=ssw_ibm_i_74/apis/debug1.html) to produce a listing of the executed statements. These are the APIs used by IBM's code coverage tools, and that is the closest thing I am aware of to the OP's requirements.

Maybe someone has a copy of the original tool?


Jon Paris
Jon.Paris@xxxxxxxxxxxxxx



On Nov 14, 2025, at 5:03 PM, Brian Parkins <goodprophet.bp@xxxxxxxxx> wrote:

The only way I could think of doing this is through debug. However, I am not not aware of any tools/utilities that provide this; maybe RDI's Code Coverage tool might help?

(I don't believe there's any facility to log individual RPG IV statements like CHGJOB; this would have to be done programmatically.)

Brian.

On 14/11/2025 20:43, gio.cot via RPG400-L wrote:
I try better explain: when in clp program we run "CHGJOB LOG(2 50 *MSG) , in
the job log we all command the are executed, with an RPG program can i
obtain teh result ?

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 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.