Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Prestart Job Entry (ADDPJE) command adds a prestart job entry to the specified subsystem description. The entry identifies prestart jobs that may be started when the subsystem is started or when the Start Prestart Jobs (STRPJ) command is entered.
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 | ||
PGM | Program | Qualified object name | Required, Positional 2 |
Qualifier 1: Program | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
USER | User profile | Name, QUSER | Optional |
STRJOBS | Start jobs | *YES, *NO | Optional |
INLJOBS | Initial number of jobs | 1-9999, 3 | Optional |
THRESHOLD | Threshold | 1-9999, 2 | Optional |
ADLJOBS | Additional number of jobs | 0-999, 2 | Optional |
MAXJOBS | Maximum number of jobs | 1-9999, *NOMAX | Optional |
JOB | Job name | Name, *PGM | Optional |
JOBD | Job description | Single values: *USRPRF, *SBSD Other values: Qualified object name |
Optional |
Qualifier 1: Job description | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MAXUSE | Maximum number of uses | 1-1000, 200, *NOMAX | Optional |
WAIT | Wait for job | *YES, *NO | Optional |
POOLID | Pool identifier | 1-10, 1 | Optional |
CLS | Class | Element list | Optional |
Element 1: Class |
Single values: *SBSD Other values: Qualified object name |
||
Qualifier 1: Class | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
Element 2: Number of jobs to use class | 0-32766, *CALC, *MAXJOBS | ||
Element 3: Class |
Single values: *NONE, *SBSD Other values: Qualified object name |
||
Qualifier 1: Class | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
Element 4: Number of jobs to use class | 0-32766, *CALC, *MAXJOBS | ||
THDRSCAFN | Thread resources affinity | Single values: *SYSVAL Other values: Element list |
Optional |
Element 1: Group | *NOGROUP, *GROUP | ||
Element 2: Level | *NORMAL, *HIGH | ||
RSCAFNGRP | Resources affinity group | *NO, *YES | Optional |
Top |
Specifies the name and library of the subsystem description to which the prestart job entry is being added. If no library qualifier is given, *LIBL is used to find the subsystem description.
This is a required parameter.
Qualifier 1: Subsystem description
Qualifier 2: Library
Top |
Specifies the name and library of the program run by the prestart job. This program name is used to match an incoming request with an available prestart job. If the program does not exist when the entry is added, a library qualifier must be specified because the qualified name is kept in the subsystem description.
Note: Two entries with the same program name can exist in a single subsystem description, but they must have different library names.
This is a required parameter.
Qualifier 1: Program
Qualifier 2: Library
Top |
Specifies the name of the user profile under which the prestart job is initiated. In addition, the current user profile of the prestart job is set to this user whenever the job waits for a request to handle.
Note: When a prestart job is given a request to handle, the current user profile of the job is updated. Refer to the Work Management guide for information on how this profile is determined. This change in current user profile is for authority checking only. None of the other attributes of the user profile, such as the current library (CURLIB) or the initial program to call (INLPGM), are given to the prestart job.
Top |
Specifies whether the prestart jobs should be started at the time the subsystem is started.
Note: Changing this value when the subsystem is active will produce no effect until the subsystem is ended and started again.
Top |
Specifies the initial number of prestart jobs that are started when the subsystem specified on the Subsystem description (SBSD) parameter is started.
Notes:
Top |
Specifies when additional prestart jobs are started. When the pool of available jobs (jobs available to service requests) is reduced below this number, more jobs (specified on the Additional number of jobs (ADLJOBS) parameter) are started and added to the available pool.
Note: The value of this parameter must be less than or equal to the value specified on the Initial number of jobs (INLJOBS) parameter.
Top |
Specifies the additional number of prestart jobs that are started when the number of prestart jobs drops below the value specified on the Threshold (THRESHOLD) parameter.
Note: The value specified on this parameter must be less than the value specified on the Maximum number of jobs (MAXJOBS) parameter.
Top |
Specifies the maximum number of prestart jobs that can be active at the same time for this prestart job entry. This value includes prestart jobs that are servicing a procedure start request, prestart jobs that are waiting to service a procedure start request, and prestart jobs that are being started as a result of reaching the value specified on the Threshold (THRESHOLD) parameter.
Notes:
Top |
Specifies the name of the prestart job that is started. Prestart jobs are automatically started when the subsystem, specified on the Subsystem description (SBSD) parameter, is started if STRJOBS(*YES) is specified.
Top |
Specifies the qualified name of the job description used for the prestart job. If the job description does not exist when the entry is added, a library qualifier must be specified because the qualified job description name is kept in the subsystem description.
Note: Only a user with all object (*ALLOBJ) special authority is allowed to add or change an entry for which the job description does not exist.
Single values
Qualifier 1: Job description
Qualifier 2: Library
Top |
Specifies the maximum number of requests that can be handled by each prestart job in the pool before the job is ended.
Note: Avoid having jobs exist for long periods of time since this can cause the job log to exceed the maximum size. Also avoid situations in which jobs can create more than the maximum number of spooled files, or can exceed the maximum processing unit time or the maximum temporary storage allocation.
Top |
Specifies whether program start requests wait for a prestart job to become available or are rejected if a prestart job is not immediately available when the procedure start request is received.
Note: Refer to the CL information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter to determine the time-out considerations for the communications type being used.
Top |
Specifies the subsystem pool identifier that the prestart jobs will run in.
Top |
Specifies the name and library of the classes that the prestart jobs run under and how many prestart jobs run under each class. Jobs start by using the first class specified until the number of jobs specified for the first class is reached. After the number of jobs specified for the first class is reached, jobs are started under the second class. If the class does not exist when the prestart job entry is added, a library qualifier must be specified because the qualified class name is kept in the subsystem description.
Note: Two classes can be specified on this parameter.
Element 1: Class
Single values
Qualifier 1: Class
Qualifier 2: Library
Element 2: Number of jobs to use class
Element 3: Class
Single values
Qualifier 1: Class
Qualifier 2: Library
Element 4: Number of jobs to use class
Top |
Specifies the affinity of threads to system resources.
Element 1: Group
Single values
Element 2: Level
Top |
Specifies whether or not prestart jobs using this entry will be grouped together having affinity to the same system resources (processors and memory). A value of *YES for this parameter will take precedence over the QTHDRSCAFN system value when set to *NOGROUP.
Top |
Example 1: Specifying Additional Prestart Jobs
ADDPJE SBSD(QGPL/PJSBS) PGM(QGPL/PGM1) INLJOBS(15) THRESHOLD(5) ADLJOBS(10) WAIT(*NO)
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.
Example 2: Specifying Maximum Number of Prestart Jobs
ADDPJE SBSD(QGPL/PJSBS) PGM(QGPL/PGM2) USER(PJUSER) MAXJOBS(100) CLS(QGPL/CLS1 75 QGPL/CLS2 *CALC) MAXUSE(50)
This command adds a prestart job entry for the PGM2 program in the QGPL library to the PJSBS subsystem description contained in the QGPL library. The entry specifies that the prestart job for this entry runs under the PJUSER user profile. The maximum number of prestart jobs that can be active at the same time for this entry is 100. Each prestart job in the pool can handle 50 requests before the job is ended. If 100 prestart jobs are active at the same time for this entry, 75 of them would use CLS1 in the QGPL library, and 25 of them would use CLS2 in the QGPL library. If 50 prestart jobs are active at the same time for this entry, all 50 of them would use class CLS1 in the QGPL library.
Top |
*ESCAPE Messages
Top |