Is this file a user catalog? If so, F CATALOG,CLOSE=ucatname (check the syntax on the command) And then issue your delete again.
It would help if you posted the output from the job and a listcat of the dataset. A second thing to try would be to alter the VSAM shareoptions for the dataset to SHR(2,3) and retry. HTH, <snip> Subject: how to delete the vsam FILE while I got IEC161I (return code 052) SFI=009 I checked with GRSMON, there is nothing resource enqueue and can't delete the file with rc IEC1611 rc=52 SFI=009 . Is there any way to delete the VSAM file? </snip> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html