× 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.



There was a command set named CRTRPGPRF/PRTRPGPRF. It was written for RPG/400 code; it might be worth updating to newer code syntax. This command adds counter lines to your code to mark executable code lines and then prints out the source and the amount of executions per line.

It's very similar in the end to code coverage but it will create a modified version of your code.

Or you could re-add these RFE's that IBM decided to decline.

http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=81063
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=81064






-Matt


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan
Sent: Wednesday, July 25, 2018 8:14 AM
To: Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>; RPG400-L@xxxxxxxxxxxx
Subject: [WDSCI-L] Generate a list of every RPG statement executed in a job, in sequence of execution

(cross-posted to WDSC-L, RPG400-L)

I was banging my head trying to debug a program yesterday. Stepping through the RDi debugger was slow and tedious.

Is there something in RDi or some other system command that will generate a list of every RPG statement executed in a job, in sequence of execution? I think I understand that code coverage will show a summary of this; line
100.00 executed 20 times, line 101.00 executed 5 times, etc. But I'm looking for

0435.00 Dou %eof( CA8555RwL1);
0436.00 Reade #142AcctID CA8555RwL1;
0437.00 If not %eof( CA8555RwL1);
0438.00 y += 1;
0439.00 #142Pat(y) = w_su_PatID;
0440.00 #142Crg(y) = w_su_CrgID;
0442.00 If y = #maxCA0142Rparmarrayelements;
0446.00 Endif;
0447.00 Endif;
0448.00 Enddo;
0435.00 Dou %eof( CA8555RwL1);
0436.00 Reade #142AcctID CA8555RwL1;
0437.00 If not %eof( CA8555RwL1);
0438.00 y += 1;
0439.00 #142Pat(y) = w_su_PatID;
0440.00 #142Crg(y) = w_su_CrgID;
0442.00 If y = #maxCA0142Rparmarrayelements;
0443.00 Exsr Call_CA0142R_Update_CA8555RwL1;
0444.00 Clear CA0142Rout;
0445.00 y = 0;
0446.00 Endif;
0447.00 Endif;
0448.00 Enddo;

I'm looking for at least the source line numbers. Bonus if the code is included.

- Dan
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=PlW3bNvtmjiHp7FaabqWlzKSrO3daIKobCaqKP17g90&s=ZE4w7jRk4j7XOh9teQF8XG8z9N1h52z9BBnvrRGpOyg&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=PlW3bNvtmjiHp7FaabqWlzKSrO3daIKobCaqKP17g90&s=_YUizGsAvKgKBIOV-LX4rufGr41kAa8KVhgVxRayYmo&e=.

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-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.