Solved

AS400 scheduled job in another subsystem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now