ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to Debug a batch job??

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

  • How to Debug a batch job??

    How do we debug a batch job??

    SAM

  • #2
    Re: How to Debug a batch job??

    Hold jobqueue

    submit your job

    work with job to get the jobname number and user

    then use STRSRVJOB to start a service job...

    Then release jobq

    and strdbg on the program......



    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: How to Debug a batch job??

      After STRSRVJOB and before releasing the held job, run STRDBG for the program, and add at least one breakpoint in the code.

      When finished, ENDDBG, then ENDSRVPGM.
      "Time passes, but sometimes it beats the <crap> out of you as it goes."

      Comment


      • #4
        Re: How to Debug a batch job??

        Hi i am debugging a prog. in batch. it's fine if i debugg it by calling a command sbmjob & hold(*yes). it works .
        but if i am calling this programme through some other program then how we can use hold(*yes) option in debug mode of first prog.

        Regards
        Jami

        Comment


        • #5
          Re: How to Debug a batch job??

          just hold the jobq hldjobq

          then after submit wrkjobq place job on hold.
          then release job queue and follow the steps above.

          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

          Working...
          X