JCL EXEC ADDRSPC

JCL - EXEC ACCT JCL - EXEC COND

Advertisements


ADDRSPC parameter is used to indicate storage required by the system for the job step.

The storage can be virtual (not real pagable) or central (real storage and nonpageable).

ADDRSPC parameter is an optional parameter.


Syntax:

ADDRSPC= {VIRT/REAL}

VIRT Specifies the request is for virtual storage.

The system can page the job step.
REAL Specifies the request is for real/central storage.

The system cannot page the job step and step of the job must place on the central storage.

Default and overrides:

If no ADDRSPC parameter is specified, the default storage requested is VIRT.

The JOB statement ADDRSPC parameter applies to each step of the JOB.

If ADDRSPC parameter specifies at JOB level and EXEC level, JOB level ADDRSPC overrides any EXEC statement ADDRSPC parameter.


Code EXEC statement ADDRSPC parameter when no ADDRSPC parameter specified at JOB level.


Example 1:

//STEP01 EXEC PGM=SAMPLE,REGION=10K

This EXEC statement indicates that ADDRSPC not specified. As per default value, ADDRSPC parameter requests virtual storage. So the space available to the step is 10K virtual storage.


Example 2:

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

This EXEC statement indicates that ADDRSPC specified as REAL. ADDRSPC parameter requests central storage. So the space available to the step is 10K central storage.


Example 3:

//STEP03 EXEC PGM=SAMPLE,ADDRSPC=REAL

This EXEC statement indicates that ADDRSPC specified as REAL. ADDRSPC parameter requests central storage. The space available to the step is the installation-specified default central storage.


Example 4:

//STEP04 EXEC PGM=SAMPLE

This EXEC statement indicates that ADDRSPC not specified. As per default value, ADDRSPC parameter requests virtual storage. The space available to the step is the installation-specified default virtual storage.


JCL - EXEC ACCT JCL - EXEC COND

Advertisements