Solved

AS400 scheduled job in another subsystem

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Restrict FTP & ODBC Access 1 230
ODBC Informix Driver 11 124
iBM i DB2 Administration Training 6 101
Answering a message that appears  hundred of times in the QSYSOPR queue. 4 65
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

776 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