Allocating system resources for the Db2ZAI started task ID

Allocating system resources is key to achieving good performance when running Db2ZAI from batch.

Before you begin

This task requires a TSO ID with OMVS access authority.

Procedure

To allocate resources for starting Db2ZAI from a proc:

  1. When you start Db2ZAI from a proc (that is, BPXBATSL), the ID assigned to the started task will either be the ID that started the JCL procedure, or the ID assigned to the RACF profile (that is, STDATA). If you set CPUTIMEMAX in the OMVS segment for that ID, the Db2ZAI processes running under that ID take the value specified for CPUTIMEMAX in the OMVS segment.

    If the CPUTIMEMAX value is not set in the OMVS segment, the system-wide value for MAXCPUTIME that has been set in BPXPRMxx is used.

  2. If the user ID is a general system user ID with TSO access, you should start Db2ZAI from JCL (that is, BPXBATSL). The CPU time limit will be determined by the TIME parameter in the JCL:
    //SERVER  EXEC PGM=BPXBATSL,REGION=0M,COND=(0,LT), 
    // TIME=NOLIMIT

To allocate resources for starting Db2ZAI from USS:

  1. If you are using a user ID that is specific to managing Db2ZAI and you plan to start Db2ZAI from USS, the CPU time limit may need to be set on the user's OMVS segment to prevent Db2ZAI server processes from reaching the CPU time limit. This will depend on the system-wide value provided in BPXPRMxx (if any).
    Use the following RACF command to set the CPU time value and memory limits on the OMVS segment:
    OMVS(CPUTIMEMAX(2147483647) MEMLIMIT(24576m) ASSIZEMAX(1073741824))