How to resolve DC045018 Scratch area full without recycling the IDMS CV
search cancel

How to resolve DC045018 Scratch area full without recycling the IDMS CV

book

Article ID: 44441

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

The CV has run out  of scratch, I am getting the following errors:

PREVIOUS TASK ABENDED WITH ABEND CODE D002 AND MESSAGE CODE 045018      
DC045018  Scratch area full.

Do I need to recycle the IDMS CV resolve this?

 

 

Environment

Release: 19.0

Resolution

If scratch is in storage, then you don't need to recycle the IDMS CV.  You can allocate more scratch dynamically using DCMT commands.

To allocate more scratch: 
DCMT VARY SCRATCH SECONDARY EXTENT 10 MB 

You may also need to  increase the limit with: 
DCMT VARY SCRATCH LIMIT 100 MB 

Note, to make this change permanent you need to modify the SYSTEM statement in the SYSGEN to specify  SECONDARY EXTENT and LIMIT for SCRATCH and regenerate the system:
MOD SYSTEM xx
SCRATCH IN STORAGE IS YES
LOCATION XA
PRIMARY EXTENT 60 MB
SECONDARY EXTENT 10 MB
LIMIT 100 MB . 
GEN.

Alternatively find out what LTERMs are using the most scratch using DCMT D SCRATCH.
Then delete the scratch records by doing a DCMT V LTE lterm_id RESOURCES DELETE for the terminal holding the scratch.
Deleting scratch records will affect running applications so do not delete them in a production environment.

Additional Information

Article 54177 - DC045018 SCRATCH AREA FULL task abend

See documentation sections DCMT VARY SCRATCH, DCMT DISPLAY SCRATCH, DCMT VARY LTERM and SYSTEM Statement