If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
If batch job is already running, go to step 2. Submit job with HOLD(*YES) or Hold the JOBQ w/HLDJOBQ, submit new job, hold new job w/WRKJOBQ, release JOBQ w/RLSJOBQ. And is a good idea to to ALWAYS code HOLD(&HOLD) on SBMJOB command in CL where &HOLD is 5a *NO. You can simply change this to *YES in debug.
STRSRVJOB JobNum/JobUser/JobName
STRDBG PGMNAME (you can see source code but can't add any breakpoints yet). Hit F12.
Release the job from hold and you'll get an info screen about "Serviced job released from job queue".
If the job is already running, using WRKACTJOB first we need to hold the job. (or) If the job is not running then while submitting include this parameter
SBMJOB CALL (PGMA) HLD (*YES)
b. Note the Job Number, Job Name & User.(*Unique parameter for any job)
c. Issue STRSRVJOB with the Job Number, Job Name & User.
d. STRDBG
e. Release the job.
f. Start Debugging.
g. ENDDBG
h. ENDSRVJOB
Young people knows how to run fast but old people knows the way..
Comment