The client encountered a hang with an existing CA DADS Plus for CICS batch interface job that runs weekly without any problems. On this particular night the batch interface deallocate of the class of 30 RLS files hung for at least 60 minutes before the operator had to cancel the batch interface job.
The CA DADS PLUS for CICS batch interface job request is to close and deallocate a CLASS of 30 RLS files defined to CICS. On this particular night an application program in CICS had an ENQ on one of the files in the CLASS and would not release the ENQ. The CA DADS Plus batch job deallocated some of the files in the CLASS until it encountered the problem file. CA DADS Plus then attempted every few seconds to deallocate the problem file but the application program still had an ENQ on the file. Since the CA DADS Plus MAXWAIT= parameter was set to zero(no timeout value) CA DADS plus would keep trying to deallocate the file until the ENQ was released. After sixty minutes the operator cancelled the batch interface job with an S222. This hang caused a delay in the client nightly batch processing.
CA DADS Plus for CICS batch interface jobs write status messages to the DADSLOG that is attached to the CICS region. To troubleshoot this problem you can search the DADSLOG for the job number of the problem batch job. You can then view the DADSLOG messages for each file in CLASS. Once you find the last file sucessfully processed in the CLASS It’s the next file in the CLASS that has the ENQ on it.
Once the CA DADS Plus batch job has ended to issue a CICS CEMT command to close the file (CEMT SET FILE(FCT NAME) CLO)
If CEMT cannot close the file CA DADS Plus will not be able to close the file.