AS/400 Job queue and subsystem

925 pts.
AS 400
AS/400 jobs
Hi Team,
We have created a job queue and mapped the same queue to two subsystems with same sequence number and maximum active jobs.
If I submit a job to that queue and if both the subsystems are active, which subsystem will process the job?

Software/Hardware used:

Answer Wiki

Thanks. We'll let you know when a new response is added.

As far as I know the only way that is possible is if the JOBQ (with the same name)  is in a different library. Then when attaching it to a subsystem, by specifying the LIBL/JOBQ it makes it unique. So submitting would be based on the JOBD to determine the subsystem it runs in. 

Discuss This Question: 6  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • WoodEngineer
    Are you absolutely 110% positive you want to do this? What is your expectation?
    8,225 pointsBadges:
  • Gayathri123
    @WoodEngineer: I just wanted to check it for testing purpose. 
    925 pointsBadges:
  • ToddN2000
    It's best to keep names unique. If you ever have to debug an issue it can make for a nightmare if you have the same object in multiple libraries. Besides, if it is for testing purposes you could break production if you are not VERY careful.
    135,525 pointsBadges:
  • Gayathri123
    Thanks Todd. I was just checking it in my test system and system did not allocate the job queue to the second subsystem even if it was active. We got a message "Job queue XXXX cannot be allocated to subsystem 2 as it is already allocated to Subsystem 1".
    925 pointsBadges:
  • TheRealRaven

    That is a CPF1184 message. If you read the rest of that message, you should see:
    Cause . . . . . :   The subsystem will start without the job queue.  The job 
      queue is allocated to another subsystem.  If that subsystem ends, subsystem
      XXXXXX will try to allocate the queue.                                     
    In other words, the first subsystem to allocate the *JOBQ will be the one that receives jobs from it.

    Stay aware that that does not mean "first to start". Subsystems can allocate many objects during the time that they're starting. Depending on everything else happening in the system, as well as elements such as authority checks and library lists that can affect job performance, it might take a couple seconds to get around to allocating a particular *JOBQ.

    A second *SBSD might be started immediately after the first one. If it's only allocating one *JOBQ while the first *SBSD is allocating many display *DEVDs, a couple dozen *JOBQs and who knows what else, the second *SBSD can easily be the one to succeed in allocation.
    36,430 pointsBadges:
  • Gayathri123
    @Realraven: Yes, I have created two job queues and added them to subsystem 1 in sequence number 10 and 20 along with my test queue(sequence number 30). Subsystem 2 only has my test queue in sequence number 10. And then started both the subsystems simultaneously. I got the message " Subsystem cannot allocate job queue" for both the subsystems. But when I submitted a job in that test queue, subsystem 2 processed that job.
    925 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: