Ask the Expert

Problems closing a file in CICS region

We're trying to close/disable a file in CICS region which looks successful using CEMT set command. But we're unable to delete/define the file in the batch. We get an error that the file is still held by the CICS region. Is it like the close hasn't happened and any tasks are holding the same. How can we overcome this problem?

    Requires Free Membership to View

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.

This was first published in March 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: