×
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.
If you are at RDi 9.x you could use the code coverage tool, it will at least tell you if a line was executed but it uses debug and causes the jobs stream to slow down, at each program code activation, significantly, so if you are attempting to trace production user usage this might not be the tool. Code Coverage also sets ALL program code into debug so ALL SQL messages are logged to the job log even if it does not cover that program. All programs called from the code coverage configuration initial program are also covered. I have had a 30 second job take 15 minutes under code coverage.
I do have an old RPG profiler I think I started to make work with Fix format RPG IV code. It was originally designed for RPG III code. I have not gotten back into this program for a while and I don't know if it even works and definitely does not work with free form c-specs or SQLRPGLE (I just have not had the time to finish it for these). But at least you could finish it. This profiler creates a new member with inserted code to count the line executions so that later you can produce a report. The profiler I am using was originally written by Mel Beckman.
Thanks, Matt
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of tim
Sent: Thursday, January 21, 2016 12:55 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: what lines of code in program are executed.
i have a huge program that i would like some kind of trace report showing what lines of code are executed. Its an RPGLE program.
Many users use this program during the day. If i counld dump all the trace information into a file that would be great.
Any suggestions?
PS. This program does call other programs/services programs, but i am only interested in the one programs lines executed.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.