An IDMS batch job abends with 4002.
Release: All supported releases.
An RHDCSRTT load module is required - even in batch. If there is no RHDCSRTT available to the job, it will abend with code 4002.
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.