×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hopping on the way back machine here...

If you can modify the program in question a tiny bit, you can achieve what you want. Below is an option.

When the program is started execute a function or subroutine that

1. Starts tracing the job. You can call a CL program to run the trace commands if you want. API's QCMDEXC and QCAPCMD can also be used.

2. Sends a scope message. You can use the Send Scope Message (QMHSNDSM) API to do this.
Scope type would be *PGM so the trace can be ended and the trace information gathered.

The scope message handling program does...

1. Ends the trace.
2. Gathers the trace information for you.

Taking a step further...

You can have some mechanism telling the program to do the trace or not.

Hope this helps.

Gary Monnier



On 1/21/2016 2:55 PM, tim wrote:

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.

References

Visible links
1. http://www.ibmsystemsmag.com/ibmi/developer/rpg/trace-tools/
--
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.

This thread ...

Replies:

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

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