JCL REGION

JCL - RD JCL - RESTART

Advertisements


REGION parameter is used to specify the size of the central or virtual storage required to execute the JOB.

Region parameter is an optional parameter.

REGION parameter can be coded at JOB level and Step level.

System applies the REGION parameter value to each step of the JOB.

If the REGION parameter coded at both JOB and Step level, JOB card overrides the Step level parameter.


Syntax:
REGION = {ValueM/ValueK}

ValueK ValueK used to specify the storage in Kilo bytes.

ValueK values are 1 to 7 digit decimal numbers.

ValueK values are from 1 through 2096128 KB (2047 MB or 2 GB).

ValueK value should also be the multiples of 4.
ValueM ValueM used to specify the storage in Megabytes.

ValueM values are 1 to 4 digit decimal numbers.

ValueM values are from 1 through 2047 MB (2 GB).

ValueM value can also provide in the multiples of 4.

The maximum value can code in the JOB by using either ValueK or ValueM, is 2GB.

If the REGION parameter coded with 0M, then it allocates the maximum available storage below 2GB to the JOB. i.e. REGION=0M/0K specifies the system as REGION=NOLIMIT.


Note:

If the memory provided in the REGION parameter was not sufficient to execute the job then, the JOB abends with S422/S822.

If the region size specified is not available below 16 megabytes, the job step abnormally ends with an ABEND822.


Overrides:

JOB statement REGION parameter applies to all steps of the job and overrides any EXEC statement REGION parameters.


Note:

Code EXEC statement REGION parameters when each job step requires a different region size and avoid coding JOB statement REGION parameter when coding EXEC statement REGION parameter. Otherwise EXEC statement REGION parameter will ignored.


Example 1:

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

This JOB statement indicates that the job requires 90K of central storage because of ADDRSPC=REAL.


Example 2:

//MTHEXMP1 JOB (META007),'PAWAN Y', REGION=90K

This JOB statement indicates that the job requires 90K of virtual storage. Because the ADDRSPC parameter is omitted, the system defaults to ADDRSPC=VIRT.


JCL - RD JCL - RESTART

Advertisements