REGION Parameter Example
Scenario1 - Allocate central memory for job processing.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y',REGION=100K,ADDRSPC=REAL
Explaining Example -
The job requires 100K of central storage because of ADDRSPC=REAL.
Scenario2 - Allocate virtual memory for job processing.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y',REGION=100K
Explaining Example -
The job requires 100K of virtual storage. Because the ADDRSPC parameter is ignored, the system defaults to ADDRSPC=VIRT.
Scenario3 - Allocate central memory for step processing.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP01 EXEC PGM=PROG1,REGION=10K,ADDRSPC=REAL
Explaining Example -
The step requires 10K of central storage because of ADDRSPC=REAL.
Scenario4 - Assign memory to the PROC step.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP03 EXEC PROC=MTHPROC,REGION.STEP01=10K
Explaining Example -
REGION.STEP01 specifies that STEP01 in the MTHPROC requires 10K of virtual storage.
Scenario5 - Coding at job level and step level.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y',REGION=100K
//*
//STEP01 EXEC PROC=MTHPROC,REGION=10K
Explaining Example -
REGION parameter at STEP01 is ignored and job card REGION parameter applies to the entire job.