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
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.
LATEST COMMENTS
MC Press Online