Solved

AS400 scheduled job in another subsystem

Posted on 2012-03-29
4
761 Views
Last Modified: 2012-03-30
Hi,

I have a few scheduled jobs that I would like them to run in subsystem qbatch2 that I created and not the regular qbatch. I have some jobs that freeze in qbatch like a bad tape during a backup and I dont want to hold these other scheduled jobs. Can you please provide the command.

Thanks.
0
Comment
Question by:se_1581
  • 2
4 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 37787351
Hi  se_1581,

Use command ADDJOBQE (Add Job Queue Entry) to add the new JobQ to a specific subsystem.

e.g.
ADDJOBQE SBSD(MYLIB/QBATCH2)  JOBQ(MYLIB/MYJOBQ)  MAXACT(2)

Regards,
murph
0
 

Author Comment

by:se_1581
ID: 37787742
Murph,

I created the jobq under the qbatch2 subsystem but I don't know how to change the job to the new jobq. The scheduled job is in *JOBD. I tried to change it with CHGJOB but it says it finds duplicates, the last 2 days when it ran. I selected one of the jobs but still did not change.

Thanks,
Steli
0
 
LVL 1

Accepted Solution

by:
berman earned 500 total points
ID: 37787864
Stenli

If the jobs are submitted  from the AS/400 scheduler use  
CHGJOBSCDE JOB(jobname)  JOBQ(qbatch2job)
if it submitted  by command SBMJOB change the parameters  JOBQ(name) in the command or in the *JOBD you use
SBJOB cmd(CALL pgm)  JOB(myjob)   JOBQ(qbatch2job)

CHGJOBD JOBD(jobdname)  JOBQ(qbatch2job)
SBJOB cmd(CALL pgm)  JOB(myjob)  JOBD(jobdname)  JOBQ(*JOBD)
0
 

Author Comment

by:se_1581
ID: 37787957
That did it.

Thanks.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question