REGION Parameter


Note! REGION parameter can be coded at the job level as well as step level.

The REGION parameter is used to specify the amount of central or virtual memory required to execute the job ot step. The system applies the REGION parameter value to each step of the job if it is coded at job level. Otherwise, it only applicable to the step where it is coded.

The REGION is a keyword parameter and is optional.

Syntax -

REGION={ValueK/ValueM}
ValueK ValueK is used to specify the storage in Kilobytes.
The value is the 7-digit value from 1 through 2096128KB (2047 MB or 2 GB).
ValueK value should also be multiples of 4.
ValueM ValueM is used to specify the storage in Megabytes.
The value is the 4-digit value from 1 through 2047 MB (2 GB).
ValueM value should alsobe multiples of 4.

The maximum value that can code in the JOB using ValueK or ValueM is 2GB. If the REGION parameter is coded with 0M, it allocates the maximum available storage below 2GB to the job or step. i.e., REGION=0M/0K specifies the system as REGION=NOLIMIT.

Danger! If the memory coded in the REGION parameter was insufficient to execute the job, then the job abends with S422/S822. If the specified region size is below 16 megabytes, the job step abnormally ends with an ABEND822.

Default and overrides -

  • If no REGION parameter is coded, system uses the installation default value.
  • The job level REGION parameter overrides the REGION parameters at the step level.
  • Step level REGION parameter value considers when no REGION parameter at job level.

Examples -


Scenario - Allocate central memory for job processing.

//MTHEXMP1 JOB (META007),'PAWAN Y',REGION=100K,ADDRSPC=REAL

The job requires 100K of central storage because of ADDRSPC=REAL.