Why does a batch job return:
DB13001E UNEXPECTED RETURN CODE 46 (46) BASE OPEN IN ANOTHER COPY OF DATACOM
DB13001E - UNEXPECTED RETURN CODE 46 (1) CLOSE/STATS ERROR
If a CA Datacom job fails with RC 46(46) or 46(1), you can ascertain the jobs, including any CICS regions using Datacom, which have already that database is OPEN for UPDATE.
Run the following DBUTLTY batch job with SYSIN:
If the Datacom MUF has it OPEN for job(s) or by virtue of ACCESS OPTIMIZE, it will issue the following message showing which job(s) have it open for UPDATE.
DB00607I BASE nnnn ACCESS status (information) (job names) (x) (j)
where (j) lists the job(s)that have opened the database for "UPDATE" inside MUF.
Please note that the above card set the ACCESS status to OFF anyway, even if the DBUTLTY failed. See "How does ACCESS OFF work with USERS=WAIT and USERS=FAIL?" article for details