You must deallocate and close the file for the current allocated FCT entry and then allocate and open the file for the second FCT.
CA DADS Plus for CICS issues the following command to perform an OPEN for a file:
EXEC CICS SET FILE(LOCDDN) OPEN
This is telling CICS to issue an OPEN against the file who's DDNAME is pointed to by LOCDDN and put the results in LOCRESP and LOCRESP2.
LOCRESP is similar to a return code, the CICS internal value for this field is EIBRESP.
LOCRESP2 is similar to a reason code, the CICS internal value for this field is EIBRESP2.
In our scenario CICS returned 16 (x'10') in EIBRESP and 54 (x'36') in EIBRESP2.
A file open request cannot be satisfied because of one of the following reasons:
• The file is being opened in RLS mode and this region has other files open in non-RLS mode against the data set that it references.
• The file is being opened in non-RLS mode and this region has other files open in RLS mode against the data set that it references.
• The file is being opened in non-RLS mode and this region has unresolved RLS recovery work against the data set that it references.
In the CICSLOG you will see message DFHFC0512 and the time and date stamp on that message corresponds to the time – date on the DADS message DADSA559
12.56.30 JOB13347 +DFHFC0512 A11IC4S5 IGD103I SMS ALLOCATED TO DDNAME FILERDUP
DFHFC0512 A11IC4S5 Non-RLS OPEN of file FILERDUP failed. This CICS has other files open for the data set (or its associated base) with RLS access mode.