Re: Suggestion for logging RPG program

Jon Paris <[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <[email protected]>
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
[email protected]



> On Nov 14, 2025, at 5:03 PM, Brian Parkins <[email protected]> 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: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/rpg400-l.
> 
> Please contact [email protected] for any subscription related questions.
> 

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

Please contact [email protected] for any subscription related questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.