I have a batch job COAMR0 which runs the RPG program (COAPR2).
In RPG program if business logic fails, I want to terminate the program and like to generate DUMP of the program.
Recently COAMR0 taking too much CPU time when it executing DUMP operation. I found this when I was debugging COAPR2 which is executing in batch job COAMR0.
After some time, it generated following error ….
Message ID . . . . . . : MCH0601 Severity . . . . . . . : 40
Message type . . . . . : Escape
Date sent . . . . . . : 21/07/08 Time sent . . . . . . : 07:02:59
Message . . . . : Space offset X'00002004' or X'0000000000000000' is outside
current limit for object COAMR0 RPLSEA 096360.
Cause . . . . . : A program tried to set a space pointer or use storage
outside a space, or tried to use an unallocated page in teraspace. The space
class is X'04'. The space class designates the type of space:
00-primary associated space (includes space objects).
01-secondary associated space 0.
02-implicit process space for automatic storage.
03-implicit process space for static storage in activation group mark
04-implicit process space for heap identifier X'00000000' in activation
group mark X'00000000'.
It generated incomplete spool file with following statements at the bottom of spool file…
“Cannot allocate storage to receive variable data. Dump terminated.
Unexpected errors occurred during module variable dump. Dump terminated. “
I think not enough memory allocated for the job to generate entire dump.
Could anybody help me to solve this issue?