Getting a D904 abend trying to invoke OPER W DB using UCFBATCH (program UCFBTCH).
Can OPER be used in UCFBATCH?
Release: 19.0
To use OPER in batch you need to use DCUF SIMULATE, the batch simulator.
This is what the UCFBATCH input would look like to use OPER:
DCUF SIMULATE
OPER WATCH DB
%CLEAR
DCUF SIMULATE OFF
BYE
See documentation sections DCUF SIMULATE and Simulating 3270-Type Terminals.