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?
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
PRIMARY EXTENT 60 MB
SECONDARY EXTENT 10 MB
LIMIT 100 MB .
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.