Need help debugging RPG program

330 pts.
Tags:
AS/400
RPG
John is trying to debug (STRISDB) a RPG program that has a ton of copy source in it. He said debug isn't working correctly; it seems to bounce all over the place. He said he made sure that the source and object match. Is there something special he has to do to debug RPG with copy source in it? -- Michelle Davidson, editor, Search400.com
ASKED: September 6, 2005  8:52 AM
UPDATED: August 2, 2010  10:14 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Boy, it’s been a while since I even did an RPG400 program. You might try this, however. When you comile the program, specify the following parameter on the CRTRPGPGM command: OPTION(*LSTDBG). If what I am reading correctly, this stores all source information on the RPG object to allow full debug of all source in the program including copy modules.

Also if you create the program with this method you can use the ILE debug command STRDBG on it by specifying parameter OPMSRC(*YES).

At some point you might think about using CVTRPGSRC to convert your RPG programs to RPGLE. There is a lot of cool functions you are missing staying with the old RPG.

===========================================================

AFAIK, you can’t control /COPY access while using STRISDB. Nor should you.

Compile with OPTION( *LSTDBG ) and use STRDBG OPMSRC( *YES ). The suggestion to convert to RPG IV is even better.

There hasn’t been any enhancement to RPG II nor RPG III in this area for a decade or more. Nor has STRISDB been enhanced. Nor are any of them ever going to be enhanced. They are obsolete, and it takes less effort to convert them than to try to debug them.

Tom

Discuss This Question: 2  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
  • SOLUTIOBILLING
    AS/400 PROGRAMMER :SREEJITH MS HOW TO DEBEGG RPG PRESS 14 TO COMPILE Source listing options *LSTDBG STRDBG (PGM NAME) AND PRESS F4 OPM source level debug . . . . . *YES PRESS F10 Display module source . . . . . *YES
    20 pointsBadges:
    report
  • SOLUTIOBILLING
    HOW TO DEBEGG RPGLE PRESS 14 TO COMPILE Debugging views . . . . . . . . *SOURCE STRDBG (PGM NAME) AND PRESS F4 OPM source level debug . . . . . *YES PRESS F10 Display module source . . . . . *YES
    20 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