If a program start request arrives when the current number of prestart
jobs is less than the number specified in the MAXJOBS attribute on the prestart
job entry, and none of the prestart jobs are available to handle the program
start request, you have the option to have this new request rejected or queued.
To reject or queue the program start request, use the WAIT attribute
on the prestart job entry.
WAIT(*NO) means that if no prestart job is available immediately,
the program start request is rejected.
WAIT (*YES) means that if no prestart
job is available immediately and no prestart job can be started due to MAXJOBS
to service the program start request, the program start request is rejected.
If no prestart job is available immediately, but additional prestart jobs
can be or have been started, the program start request is queued.
This command adds a prestart job entry for the PGM1 program in the
QGPL library to the PJSBS subsystem description contained in the QGPL library.
The entry specifies that 15 prestart jobs (program PGM1 in the QGPL library)
are started when subsystem PJSBS in the QGPL library is started. When the
pool of available prestart jobs is reduced to four (because the prestart jobs
are servicing requests specified for program PGM1 in the QGPL library), ten
additional jobs are started. If no prestart jobs are available for this entry
when a request is received, the request is rejected.
ADDPJE SBSD(QGPL/PJSBS) PGM(QGPL/PGM1) INLJOBS(15)
THRESHOLD(5) ADLJOBS(10) WAIT(*NO)