MEMLIMIT Parameter Example


Scenario1 - 99MB virtual memory at JOB level.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (MTH007),'PAWAN Y',MEMLIMIT=99M 

Explaining Example -

The job can use upto 99 megabytes of virtual memory above the default limit.

Scenario2 - 0M virtual memory at JOB level.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP2 JOB (MTH007),'PAWAN Y',REGION=0M

Explaining Example -

The job is limited to use the default virtual memory.

Scenario3 - Ignoring MEMLIMIT parameter.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP3 JOB (MTH007),'PAWAN Y',REGION=NOLIMIT

Explaining Example -

The job can use unlimited virtual memory above the default limit.

Scenario4 - 90MB virtual memory at step level.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//STEP01 EXEC PGM=PROG1,MEMLIMIT=90M

Explaining Example -

The step can use upto 90 megabytes of virtual memory above the default limit.

Scenario5 - MEMLIMIT parameter.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//MTHEXMP1 JOB (MTH007),'PAWAN Y',MEMLIMIT=99M 
//*
//STEP01 EXEC PGM=PROG1,MEMLIMIT=90M
//STEP02 EXEC PGM=PROG2

Explaining Example -

The step can use upto 90 megabytes of virtual memory above the default limit and STEP02 uses 99 megabytes of virtual memory above the default limit.