You can control the subsystems in which user jobs are run. For example, you can create separate subsystems for users or groups of users.
The QSERVER subsystem is still shipped with the same default pre-start job entries. If a client attempts to use a subsystem that does not have pre-start job entries defined, the server then runs in the QSERVER subsystem using batch-immediate jobs. If this occurs, the jobs maintain the same name, but may have a job type of BCI (batch-immediate) instead of PJ (pre-start) when viewed on the Work With Active Jobs (WRKACTJOB) display.
System performance
The ENDTCPSVR command and the QZLSENDS API also take longer to complete when ending iSeries NetServer™. These commands take more time to process because all of the jobs associated with the server must be ended when the daemon job is ended.
The connect time may also be slightly longer when batch-immediate jobs are used.
Add prestart jobs to a subsystem description
When you configure clients to run jobs in a different subsystem than QSERVER, you must also add the necessary pre-start jobs to the subsystem description. For example, to add pre-start jobs for QZLSFILE in another subsystem, you would use the following command string (inserting your own subsystem name): ADDPJE SBSD(SubsystemName) PGM(QSYS/QZLSFILE) USER(QUSER) STRJOBS(*YES) INLJOBS(1) THRESHOLD(1) ADLJOBS(5) JOB(*PGM) JOBD(QSYS/QZLSPJ) MAXUSE(200) WAIT(*YES) POOLID(1) CLS(QSYS/QPWFSERVER *CALC *NONE *CALC). Adding pre-start jobs for QZLSFILET is very similar. Substitute QZLSFILE with QZLSFILET in the above command string and change the following parameters: ADLJOBS(0), JOBD(QSYS/QZLSPJ), and MAXUSE(1).
This command starts 1 prestart job in the subsystem that you configured. This job is used when a new connection is established to iSeries NetServer. For QZLSFILE, when the number of pre-start jobs drops below 1, five more pre-start jobs are started in order to be used by future connections. For QZLSFILET, there is only one job running in a subsystem.
Specify subsystems
To specify the subsystems that iSeries NetServer server jobs run in, follow these steps: