ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Debugging an iSeries Cobol program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debugging an iSeries Cobol program

    Does anyone know what items i put in a compile to put the Cobol program to debug. I have tried *source & *gen etc and it doesn't seem to go into debug mode.

    Thanks,

    DAC

    Can you believe I am doing Cobol!

  • #2
    Re: Debugging an iSeries Cobol program

    Try using *LIST.

    Terry

    Comment


    • #3
      Re: Debugging an iSeries Cobol program

      If the type is "CBL", then while compiling in the Source Listing Option parameter specify *SRCDBG and use STRISDB to do the debug.

      If the type is "CBLLE", then while compiling in the Debug View parameter specify *SOURCE and use the STRDBG to do the debug.

      Comment


      • #4
        Re: Debugging an iSeries Cobol program

        When you do STRDBG, do you get your source listing displayed?
        If yes, did you set breakpoints ? F6 with cursor on line sets a breakpoint.
        Your CL program that executes your COBOL program should not do SBMJOB calling another CL program.
        I always have to place mine "inline".
        If you have something like this:
        SBMJOB CMD(CALL PGM(myCLgm)) JOB(anyJOBname) +
        JOBPTY(3) MSGQ(*NONE)

        I would think it may be a cause for debug not stopping in your pgm.

        Lenny

        Comment

        Working...
        X