Debugging in AS400

2475 pts.
Tags:
AS/400
AS400 Debug
I have a RPG Program consist of 3000 lines and its using 9 Physical Files and some LF also .. Now i need to debug the program only to find out particular values in particular in Particular PF. In debugging Mode if i press F10 its reading all those records in every PF. How can i stop the read at particular point and continue with next loop or next read. ??

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Is it RPG III or RPG IV? Are these full procedural files or are they read by the RPG 'Cycle'? (That is, does the program use READ or CHAIN statements or are the files read automatically?) -- Tom
    125,585 pointsBadges:
    report
  • Sureyz
    Hi Tom.. its RPG III and these are Full procedure files, and its using CHAIN with keylist to read teh records.
    2,475 pointsBadges:
    report
  • TomLiotta
    The very first thing I would do is conert the program to RPG IV.   But for RPG III, I'm not quite certain what you're asking. If you want to see values at a specific spot in the program, set a breakpoint and don't use F10. Use F12 to run to the breakpoint.   If that doesn't make sense for your circumstances, please clarify what you mean. The only other element that I can think of that would be related would be the debugger showing each field being populated as you press F10 over and over again. If that's what you mean, then the answer is to convert the program to RPG IV and recompile with OPTION( *NODEBUGIO ).   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Typo... "...is convert the program to RPG IV." -- Tom
    125,585 pointsBadges:
    report
  • gfprogrammer
    You can put the OPTION(*NODEBUGIO) in the H spec of the RPG program and you will not have to remember to change the compile option every time you compile the program.
    250 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following