D904 abend in UCFBATCH using OPER

Document ID : KB000071694
Last Modified Date : 22/02/2018
Show Technical Document Details
Issue:
I'm getting a D904 abend trying to invoke OPER W DB using UCFBATCH (program UCFBTCH).
Can OPER be used in UCFBATCH?
Resolution:
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
Additional Information:
Sections DCUF SIMULATE  and Simulating 3270-Type Terminals in DocOps