IBM i Global

 View Only

 Reserved document?

Miguel Peralta's profile image
Miguel Peralta posted Fri June 13, 2025 01:33 PM

Hi, I'm deleting a document from a folder. It sent a CFP8A95 message stating that the document is reserved. I didn't delete it.

What could I have done to remove the reserved status and delete it?

I can't find any information about this message on the IBM website or in Google.

reggards.

Satid S's profile image
Satid S

Dear Miguel

Try using IBM i service (from Run SQL Script tool session) to check if there is any job(s) locking the file. 

SELECT JOB_NAME, PATH_NAME, CHECKED_OUT, CHECKED_OUT_USER_NAME (and any other columns you want)  FROM TABLE(QSYS2.IFS_OBJECT_LOCK_INFO(PATH_NAME => '/myfile/test1.txt'))

More info about the service here: IFS_OBJECT_LOCK_INFO table function at https://www.ibm.com/docs/en/i/7.4.0?topic=services-ifs-object-lock-info-table-function         

There is also the service IFS_OBJECT_STATISTICS table function to see more attributes of stream files in IFS.