×

Good News Everybody!

The new search engine is LIVE!

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




How about ADDTRC? Here's the AI summary when googling for "when to use addtrc":

How to use|ADDTRC|

1. *Start the debugger and trace:*
* EnterSTRDBG
<https://www.google.com/search?q=STRDBG&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAC>to
start the debugger.
* EnterADDTRC
<https://www.google.com/search?q=ADDTRC&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAE>to
begin tracing. You can specify statement ranges and program
variables to track.
2. *Run the program:*Let the program run for a short period to collect
the trace data.
3. *Stop the trace:*EnterRMVTRC
<https://www.google.com/search?q=RMVTRC&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAH>to
stop the trace from being collected.
4. *View the data:*EnterDSPTRCDTA
<https://www.google.com/search?q=DSPTRCDTA&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAJ>to
display the trace data and analyze the results.
5. *End debugging:*Finally, useENDDBG
<https://www.google.com/search?q=ENDDBG&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAL>andENDSRVJOB
<https://www.google.com/search?q=ENDSRVJOB&oq=when+to+use+addtrc&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMzgzNWowajSoAgCwAgE&sourceid=chrome&ie=UTF-8&mstk=AUtExfDLRwl0gL6AFtZNlOtdzoyqppbWGFv3xkYJrTaaWK1n4xjvsON4ZDSFREVmEevZSI3yEZlIaH7ddCa2kaxRP-IZyP-on_mEdHa8kByeFKYDrPG7XfI1m8KKoT3y8Mg5Tgb4sJ41SMHrcv1ywIlbGyxVThIWA0cNcolJlxnGFJ15PhSpGJEUVCNjSTRFQrPJCvq7MGxy7m2QkQiaB--Ss1JdYR6ZLi3-ft_QCzR5zls1Vu4wWnE4KqESOvQ8UW9bL9r_wQcWNoR1Q_Ni-gDrCEtM&csui=3&ved=2ahUKEwiPor3ltPeQAxXoweYEHbQwD04QgK4QegQIBhAM>to
end the debugging session.

--
*Peter Dow* /
909 793-9050
petercdow@xxxxxxxxx
/



On 11/14/2025 12:43 PM, gio.cot via RPG400-L wrote:
Hi all

How suggested from David Gibbs , i try to post here my question already
posted in 'Midrange Systems Technical Discussion' :

Is there a way to log the program rpg operation like we obtain when for a
CLP program we set the CHGJOB LOG(2 50 *MSG) ?

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 ?

Hope my question is clear ..

Thanks in advance



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.