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



Dan -

What kind of program is PC8741ICXX?

If it is an ILE program, you cannot trace it.  ILE programs cannot be
traced.   If it is an OPM program, you _can_ trace it, but all you will get
out of the trace is statement numbers.

Procedure for producing trace from a program:

1)  Start debug like indicated in your message
2)  Add a trace using ADDTRC
3)  Run the program
4) Use DSPTRCDTA OUTPUT(*PRINT) to display the trace data after running the
program to display the trace data to a report
5) RMVTRC *ALL
6) ENDDBG

Have you considered using interactive debug instead?  I almost _always_ use
interactive debug now, instead of trace...

Steve Landess
Austin, Texas
(512) 423-0935

----- Original Message -----
From: "Dan" <dbcerpg@yahoo.com>
To: <rpg400-l@midrange.com>
Sent: Tuesday, December 17, 2002 10:59 AM
Subject: Tracing statements executed in debug


> Wondering if there is a way to trace the statements run in a program so
> that I can see where a particular subroutine was called from.  I tried
> using:
>   STRDBG PGM(DEVDB/PC8741ICXX) MAXTRC(32767) TRCFULL(*WRAP)
> UPDPROD(*YES) OPMSRC(*YES)
> but am unable to determine how to see the results of the trace.  I have
> gone to the CMDTRC menu and tried various commands, but am coming up
> empty.
>
> Since I anticipate that the trace will show only statement numbers, it
> would be nice to be able to see the trace results with the code that
> was executed.  Anybody doing this?
>
> TIA, Dan
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.