ADDRSPC Parameter Example
Scenario1 - No ADDRSPC parameter for the entire job.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (META007),'PAWAN Y',REGION=10K
Explaining Example -
The space available to the job for processing is 10K virtual storage because of no ADDRSPC parameter coded.
Scenario2 - 10K real memory at JOB level.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (META007),'PAWAN Y',ADDRSPC=REAL,REGION=10K
Explaining Example -
ADDRSPC parameter requests central storage. So the space available for the full job is 10K central storage.
Scenario3 - Installation default REAL memory at the JOB level.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP3 JOB (META007),'PAWAN Y',ADDRSPC=REAL
Explaining Example -
ADDRSPC parameter requests central storage. The space available for the job is the installation default central storage.
Scenario4 - Installation default VIRT memory.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP4 JOB (META007),'PAWAN Y'
Explaining Example -
As per the default value, the ADDRSPC parameter requests virtual storage. The space available for the job is the installation default virtual storage.
Scenario5 - 10K real memory at STEP level.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//STEP02 EXEC PGM=PROG1,ADDRSPC=REAL,REGION=10K
Explaining Example -
ADDRSPC parameter requests central storage. So the space available for the step is 10K central storage.
Scenario6 - Both JOB and EXEC statements have ADDRSPC.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP5 JOB (META007),'PAWAN Y',ADDRSPC=REAL
//*
//STEP01 EXEC PGM=PROG1,ADDRSPC=VIRT
Explaining Example -
The ADDRSPC parameter at the EXEC statement is ignored as the JOB statement has the ADDRSPC parameter and applies to all the job steps.