Tech Talk: Run Batch Jobs at Different Priorities

General
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Q: I am having trouble with two subsystems. I want programmers to use QBATCH and run jobs at run priority 30. I want user batch jobs to go through subsystem QUSERS at priority 50. I set up two job queues and two subsytems, but jobs in both subsystems run at priority 30. How do I get QUSERS to use the new class?

- Karl Lauritzen

Waco, TX

This email address is being protected from spambots. You need JavaScript enabled to view it.

A: Provided you simply used the Create Duplicate Object (CRTDUPOBJ) command from QBATCH to set up your QUSERS subsystem, the following commands should do the trick:

CRTCLS CLS(QGPL/QUSERS) +

RUNPTY(50) +
PURGE(*NO) +
DFTWAIT(120) +
TEXT('User Batch Jobs')

CHGRTGE SBSD(QUSERS) +

SEQNBR(9999) +
CLS(QGPL/QUSERS)

The first creates a new class with priority 50 and typical batch attributes. Set your PURGE and DFTWAIT parameters however you wish.

The second changes the default routing entry (normally at sequence number 9999) for subsystem QUSERS to use that class. Use this code only if you already have a routing entry 9999 with compare value *ANY. (I'm pretty sure this is how QBATCH is shipped). Use DSPSBSD QUSERS to make sure. You should see a line like this:

9999 QCMD QSYS *ANY

- Joe Pluta

NexGen, Inc.

This email address is being protected from spambots. You need JavaScript enabled to view it.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: