ADDRSPC Parameter


Note! ADDRSPC parameter can be coded at the job level and step level.

ADDRSPC parameter is used to specify the storage type that is needed by the system to process the job. The storage can be virtual (not real) or central (real storage). ADDRSPC is a keyword parameter and is optional.

Syntax -

ADDRSPC= {VIRT/REAL}
VIRT Specifies the virtual storage is required.
REAL Specifies the real | central storage is required.
Each job step should place in the central storage.

Defaults -

The system default storage is VIRT if no ADDRSPC parameter is coded.

Overrides -

  • The job level ADDRSPC parameter applies to each step of the job even though ADDRSPC is coded at the step level.
  • The step level ADDRSPC parameter considers only when there is no ADDRSPC at job level.

Examples -


Scenario1 - No ADDRSPC parameter for the entire job.

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

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.

//MTHEXMP2 JOB (META007),'PAWAN Y',ADDRSPC=REAL,REGION=10K

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.

//MTHEXMP3 JOB (META007),'PAWAN Y',ADDRSPC=REAL

ADDRSPC parameter requests central storage. The space available for the job is the installation default central storage.

Scenario4 - Installation default VIRT memory.

//MTHEXMP4 JOB (META007),'PAWAN Y'

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.

//STEP02 EXEC PGM=PROG1,ADDRSPC=REAL,REGION=10K

ADDRSPC parameter requests central storage. So the space available for the step is 10K central storage.

Scenario6 - Both JOB and EXEC statements have ADDRSPC.

//MTHEXMP5 JOB (META007),'PAWAN Y',ADDRSPC=REAL
//*
//STEP01 EXEC PGM=PROG1,ADDRSPC=VIRT

The ADDRSPC parameter at the EXEC statement is ignored as the JOB statement has the ADDRSPC parameter and applies to all the job steps.