Solved

AS400 scheduled job in another subsystem

Posted on 2012-03-29
4
752 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

When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Riverbed Technology's webinar discusses networking for the cloud era with simplified SD-WAN cloud connectivity.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

827 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