Time Trigger a batch job in AS/400

Tags:
AS/400
Batch jobs
How do I Time Trigger a batch job in AS/400? A basic program as an example will be helpful. Thanks!
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can do it manually by using the ADDJOBSCDE command and filling in the parameters like so…

ADDJOBSCDE JOB(MYJOB) 
CMD(SBMJOB CMD(CALL PGM(MYLIB/MYPGM)) 
JOB(MYJOB) 
JOBD(MYJOBD) 
JOBQ(MYJOBQ) 
OUTQ(MYLIB/MYOUTQ)) 
FRQ(*WEEKLY)     

 Or you do it through the job scheduler using the WRKJOBSCDE command like pdraebel mentioned. (that is the easier method in my opnion) .

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • pdraebel
    One option is to use the Standard Job Scheduler: WRKJOBSCDE command will take you there.
    7,545 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: