Closing the file from within CICS will allow Batch jobs to access the file contents (subject to the correct SHR options), but this action does not overrride the normal MVS JCL file sharing rules. You have got the file in the JCL with DISP=SHR, and this will stop you from deleting/recreating it. If you need to delete/recreate the file, then you are going to have to remove it from the JCL and in the FILE RDO definition put in the DSN (instead of the DDN). Then, you can close the file and delete the definition (from CEMT) which will allow you to delete/recreate it in batch....naturally, you will have to reinstall the RDO definition (via CEDA) to use the new file within CICS.
Dig deeper on Mainframe operating systems and management
Related Q&A from Robert Crawford
The mainframe is IT's original cloud, and there are still ways to float cloud operations onto big iron today. But is it pragmatic?continue reading
With 3270 bridge, you can't stack input messages into one structure. The bridge can't process them all at once. It takes a little more work.continue reading
CICS expert Robert Crawford offers advice on determining the connection between CICS transactions and MQ Queue name.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.