Ü To debug a batch job

 

The steps to debug a batch job for program ADDCL is given below:

 

(1) SBMJOB CMD(CALL PGM(AMINEM/ADDCL)) HOLD(*YES)                           

    Job 300129/A07OPER/ABATCHD submitted to job queue ABATCHD in library ASLMS000.   

(2) STRSRVJOB JOB(300129/A07OPER/ABATCHD)   

(3) STRDBG PGM(AMINEM/ADDCL) UPDPROD(*YES) OPMSRC(*YES) 

(4) SOURCE APPEARS , PRESS F12 TO COME OUT TO COMMAND LINE

(5) WRKJOB JOB(300129/A07OPER/ABATCHD) ==> OPTION 43 TO RELEASE THE JOB

(6) AFTER RELAEASING THE SERVICE JOB WILL START AND WILL SHOW YOU THE SCREEN AS BELOW:

 


                              Start Serviced Job                             
                                                            System:   SYS00441
      Job:   ABATCHD        User:   A07OPER        Number:   300129                
                                                                             
      The serviced job has been released from the job queue.  Press Enter to       
      start the job or F10 to enter debug commands for that job.
 
 
 
 
      F12-CANCEL              F3-EXIT      

 

(6) PRESS F10 AND ON THE COMMNAD LINE GIVE COMMAND 'DSPMODSRC'

(7) DSPMODSRC TO DISPLAY THE SOURCE AND TO PUT THE BREAK POINT

(8) F3 AND F12 TO GET THE SCREEN OF STEP(6), PRESS " ENTER TO CONTINUE"

(9) DEBUGGING WILL START AND PROGRAM WILL EXCUTE.

(10)ENDDBG

(11)ENDSRVJOB 

 

****************END OF DEBUG BATCH JOB ****************************



 

 







User Comments:



Subscribe

  Email:



Copyright © www.go4as400.com, 2013-2017. Copyright notice