Running Ideal command D INDEX RELATED works fine for an Ideal user in CICS but fails in batch with error : IDADSVCS01E: Insufficient level of authorization for the requested function.
Authorization level for DISPLAY-INDEX-RELATED is BYPASS in the Ideal options file table.
Ideal
The default authorization for the command DISPLAY-INDEX-RELATED has been changed from ADMIN to BYPASS which allows any Ideal user to run any 'DISPLAY INDEX entity-type RELATED TO entity-type entity-name VER nnn' command in IDEAL online.
Due to the fact that the result of the DISPLAY-INDEX-RELATED command is being printed when executed in batch, authorization for command PRINT-INDEX-RELATED also needs to be changed to BYPASS as well.
For documentation, refer to Maintaining Authorizations.