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, CA-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, a CA-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 in r18.0, because RHDCSRTT is now in the CUSTOM.LOADLIB library as opposed to the normal IDMS LOADLIB where it resided in prior issues. If a batch job's JCL has not been updated to include the CUSTOM.LOADLIB in STEPLIB, 4002 abends will result.