CL Command Reference - ADDJOBQE

CL Command List > ADDJOBQE Reference

Description:

The Add Job Queue Entry (ADDJOBQE) command adds a job queue entry to the specified subsystem description. A job queue entry identifies a job queue from which jobs are selected for running in the subsystem. Jobs can be placed on a job queue by spooling readers or by using the following commands:
. Submit Job (SBMJOB)
. Submit Data Base Jobs (SBMDBJOB)
. Submit Diskette Jobs (SBMDKTJOB)
. Transfer Job (TFRJOB)
. Transfer Batch Job (TFRBCHJOB)

Jobs started from a job queue are batch jobs (except for interactive jobs that use the TFRJOB command). In a subsystem, job queues with lower sequence numbers are processed first. For more information, refer to the Sequence number (SEQNBR) parameter.

Notes:

1. The job associated with an active subsystem can only find objects that exist in the system auxiliary storage pool (ASP) or in a basic user ASP. Therefore, objects that are referenced by this command should exist in the system ASP or in a basic user ASP.

Restrictions:

1. To use this command, you must have:
. object operational (*OBJOPR), object management (*OBJMGT), and read (*READ) authority to the specified subsystem description and execute (*EXECUTE) authority to the library containing that subsystem description.


Examples:

Example 1: Adding a Job Queue

ADDJOBQE SBSD(QGPL/NIGHTSBS) JOBQ(QGPL/NIGHT) MAXACT(3)

This command adds a job queue entry for the NIGHT job queue (in the QGPL library) to the NIGHTSBS subsystem description contained in the QGPL library. The entry specifies that up to three batch jobs from the NIGHT job queue can be active at the same time in the subsystem. The default sequence number of 10 is assumed.



Example 2: Running Jobs in Specific Priority Levels

ADDJOBQE SBSD(QBASE) JOBQ(JOBQ1) MAXPTY1(2) MAXPTY7(0)
MAXPTY8(0) MAXPTY9(0) SEQNBR(99)

This command adds a job queue entry for the JOBQ1 job queue to the QBASE subsystem description. The sequence number for this job queue is set to 99. The priority levels specified prevent any jobs with priority levels 7 through 9 from running.