Problem
Trying to unload/reload a database and the reload gets the following abend in step IDMSDBL3 if using CA-TLMS:
CAT9040I Z20493 ON 8019 REJECTED BY CA-DYNAM/TLMS CAT9041I VOLUME IS NOT A SCRATCH TAPE IEC502E R 8019,Z20493,SL,DBM49RL,RELOAD CTS014 IEC502E R 8019,Z20493,SL,DBM49RL,RELOAD IEC148I 713-04,IFG0196N,DBM49RL,RELOAD,SYS005,8019,,IDM2.BES.SYS005 +IDMS DC329009 TMGR error: #TXN return code: 0C reason code: 0C55
Other tape management systems may give different error messages.
For example if using CA-1 you could see message IEFTMS50 7xx-04
12.46.57 JOB20041 IECTMS3 E73B,293139,IS NOT SCRTCH (64)
12.46.57 JOB20041 IEFTMS50 7XX- 04 Y4507RLD,RELOAD ,SYS004 ,E73B,293139,00001,Y4507RLD.R0A72051
The reason for this abend is that some tape management systems do not allow a second open for update in the same job step.
In the usage section for RELOAD it says
REUSE WORKFILE considerations
Some tape volume management systems consider the reuse of a tape volume for second time output processing an error even in the same job and will not allow you to make this mistake. It results in rerunning the job over again without the REUSE option. You can sometimes avoid this by specifying a zero retention period for the tape output volume.
There is no specific solution to this scenario and the problem is documented in the RELOAD section of the CA-IDMS Utilities manual.
The circumvention is to NOT use the REUSE WORKFILES option or to use disk for the intermediate work files.