What is ADDRSPC parameter - IBM-JCL

Parameter Type

Keyword, optional

Purpose

Use the ADDRSPC parameter to indicate to the system that the job step requires virtual storage (which is pageable) or central storage (also called real storage, which is nonpageable).

1.Syntax

ADDRSPC[.procstepname]= {VIRT} {REAL}

2.Subparameter Definition

VIRT
Requests virtual storage. The system can page the job step.

REAL
Requests central storage (also called real storage). The system cannot page the job step and must place the job step in central storage.

3.Defaults
If no ADDRSPC parameter is specified, the default is VIRT.

4.Overrides
The JOB statement ADDRSPC parameter applies to all steps of the job and overrides any EXEC statement ADDRSPC parameters.

Code EXEC statement ADDRSPC parameters when each job step requires different types of storage. The system uses an EXEC statement ADDRSPC parameter only when no ADDRSPC parameter is on the JOB statement and only during the job step.

5.Relationship to the EXEC REGION Parameter

When ADDRSPC=REAL

Code a REGION parameter to specify how much central storage the job needs. If you omit the REGION parameter, the system uses the default.

When ADDRSPC=VIRT or ADDRSPC is Omitted

Code a REGION parameter to specify how much virtual storage the job needs. If you omit the REGION parameter, the system uses the default.

6.On an EXEC Statement that Calls a Procedure
If this EXEC statement calls a cataloged or in-stream procedure, the ADDRSPC parameter overrides the ADDRSPC parameter on or is added to:

  • The EXEC statement named in the procstepname qualifier. The parameter applies only to the named procedure step. The EXEC statement can have as many ADDRSPC.procstepname parameters as the procedure has steps; each ADDRSPC parameter must specify a unique procstepname.
  • All EXEC statements in the procedure if procstepname is not coded. Then the parameter applies to all steps in the called procedure.

7.Examples of the ADDRSPC Parameter

Example

//CAC1 EXEC PGM=A,ADDRSPC=VIRT

This EXEC statement executes program A and requests virtual (pageable) storage. Because the REGION parameter is not specified, the storage available to this job step is the installation default or the region size specified on the JOB statement.

Example

//CAC2 EXEC PROC=B,ADDRSPC=REAL,REGION=80K

This EXEC statement calls procedure B and requests central (nonpageable) storage. The REGION parameter specifies 80K of storage.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM-JCL Topics