4002 abend in batch: MODULE RHDCSRTT BLDL FAILED
search cancel

4002 abend in batch: MODULE RHDCSRTT BLDL FAILED

book

Article ID: 21148

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

An IDMS batch job abends with 4002.

Environment

Release: All supported releases.

Cause

An RHDCSRTT load module is required - even in batch. If there is no RHDCSRTT available to the job, it will abend with code 4002.

Resolution

If there is no RHDCSRTT available to a batch job, it will abend with a 4002.

Even in batch, IDMS does a signon with either the userid extracted from the jobname or the userid specified in EXTRUID in the #SECRTT with TYPE=INITIAL.

For this reason, an IDMS batch job requires an RHDCSRTT load-module, specifically one with the correct SVCNUM= for the CV in question.

In particular, this may become an issue from r18.0 onwards, because RHDCSRTT is now in the CUSTOM.LOADLIB library as opposed to the normal IDMS LOADLIB where it resided prior to r18.0. If a batch job's JCL has not been updated to include the CUSTOM.LOADLIB in STEPLIB, 4002 abends will result.