ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Debugging Batch Jobs

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

  • Debugging Batch Jobs

    Hi,

    How to debug a batch job, what r the steps? Is it possible to debug a remote job if yes what r the steps?

  • #2
    Re: Debugging Batch Jobs

    please look here




    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Debugging Batch Jobs

      Yes... You can debug a batch job...

      1. Submit the job and hold it...
      2. STRSRVJOB to the job that was just submitted...
      3. STRDBG on the program you want to debug (You won't be able to set break points at this stage... )
      4. Release the job
      5. A Screen will be displayed asking if you want to set break points(F10) or execute the program (Enter.) I would recommend using F10 to set break points.
      6. Use DSPMODSRC to set breakpoints in your program.
      7. Debug away...

      For remote debugging... You may want to check into the Remote Debugging tool provided in the Websphere development suite.

      Thanks
      George

      Comment


      • #4
        Re: Debugging Batch Jobs

        Or, from the RSE editor, click set SEP. When the job runs, it will open the debug perspective and you can set breakpoints, whatever, even edit the source code on the fly.

        Comment

        Working...
        X