Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
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:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SBSD | Subsystem description | Qualified object name | Required, Positional 1 |
Qualifier 1: Subsystem description | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
JOBQ | Job queue | Qualified object name | Required, Positional 2 |
Qualifier 1: Job queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MAXACT | Maximum active jobs | 0-1000, 1, *NOMAX | Optional |
SEQNBR | Sequence number | 1-9999, 10 | Optional |
MAXPTY1 | Max active priority 1 | 0-99, *NOMAX | Optional |
MAXPTY2 | Max active priority 2 | 0-99, *NOMAX | Optional |
MAXPTY3 | Max active priority 3 | 0-99, *NOMAX | Optional |
MAXPTY4 | Max active priority 4 | 0-99, *NOMAX | Optional |
MAXPTY5 | Max active priority 5 | 0-99, *NOMAX | Optional |
MAXPTY6 | Max active priority 6 | 0-99, *NOMAX | Optional |
MAXPTY7 | Max active priority 7 | 0-99, *NOMAX | Optional |
MAXPTY8 | Max active priority 8 | 0-99, *NOMAX | Optional |
MAXPTY9 | Max active priority 9 | 0-99, *NOMAX | Optional |
Top |
Specifies the name and library of the subsystem description to which the job queue entry is added.
This is a required parameter.
Qualifier 1: Subsystem description
Note: The following IBM-supplied objects are not valid on this parameter:
Qualifier 2: Library
Top |
Specifies the name and library of the job queue that is a source of batch jobs that are started by the subsystem. If the job queue does not exist when the entry is added or changed, a library qualifier other than *LIBL must be specified because the job queue name is kept in the subsystem description.
This is a required parameter.
Qualifier 1: Job queue
Qualifier 2: Library
Top |
Specifies the maximum number of jobs that can be active at the same time from this job queue.
Top |
Specifies a sequence number for this job queue, which is used by the subsystem to determine the order in which the job queues are processed.
The subsystem first selects jobs from the job queue with the lowest sequence number. When all jobs on that queue have been processed or the number of jobs specified on the Maximum active jobs (MAXACT) parameter has been reached, the subsystem processes jobs on the queue with the next higher sequence number. This sequence continues until all job queue entries have been processed, or until the subsystem has reached its limit for overall maximum jobs. In some cases, the sequence is interrupted and the subsystem processes a job queue with a lower sequence number. This occurs for this subsystem when one of the following conditions occurs:
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
Specifies the number of jobs that can be started for a specified job priority level.
Top |
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.
Top |
*ESCAPE Messages
Top |