10 pts.
 deleting PC files on iSeries
Can anyone help me please with this problem? Yesterday I copy PC file to iSeries folder through windows explorer, and that work, but when I try to delete this file (also in windows explorer) I get error: "Can not delete 'filename': It is being used by another person or program. Close any program that my be using the file and try again." I did restart my PC and then try delete file, but same error appears. I'm sure that nothing from my PC hold this file. How can I delete this file through windows explorer? ps: Pardon me for bad English

Software/Hardware used:
ASKED: December 10, 2004  6:14 AM
UPDATED: April 20, 2006  2:19 AM

Answer Wiki:
Most likely it is an authorization issue. Are you authenticated on the iSeries, or just using the Guest access?? I can't remember for sure, but if Guest you probably can not delete PC files off iSeries w/out changing the authorization. You can either use the EDTOBJAUT command, and change *PUBLIC access to *ALL, or you will need to use the WRKLNK command if in the IFS.
Last Wiki Answer Submitted:  December 10, 2004  2:05 pm  by  Superfreak   0 pts.
All Answer Wiki Contributors:  Superfreak   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi there,

You might try restarting your machine in safe mode and then try to delete them.

Good luck

 0 pts.

 

Yes, I am authenticated on the iSeries, I’m Security Officer. I checked PC file with WRKLNK and set *PUBLIC to *ALL and then try deleting file, but same error appears.

Hi,
Your suggestion:
“You might try restarting your machine in safe mode and then try to delete them.”
It is not problem in PC, I did restart my PC and then try to delete PC file, but without success.

Anyway, thanks for Your help, if You remember anything else, please send me e-mail.

Best regards,
Dalibor Staba

 10 pts.

 

Hi all,

Some times objects are in lock status by another job and you cannot delete them. To make sure that your file is not locked use following commands:

WRKFLR to check the folder and document object name.

DSPDLONAM DLO(document-name) FLR(Folder_name)

Note down System Object Name.

WRKOBJLCK OBJ(QDOC/system-object-name) OBJTYPE(*DOC)

If you see any jobs then you need to end them to unlock the object (use option-4 to end the job).

Now try to delete the file again.

Good luck.

Mohammad Hanif

 0 pts.

 

With Netserver you can set a share to “read only” and even with QSECOFR you would not be able to delete the IFS objects. If you can delete the files via WRKLNK and can’t with network neighborhood then use iSerise Nav to set it to “Read/Wire” on the share. Hope this helps.

 0 pts.

 

From help2go.com-

- Open a Command Window (Start Accessories – Command Prompt)
- Leave it open but close down all other running programs.
- Now via the Ctrl Alt Del or from the Task Manager (Start – Run Type TASKMGR.EXE) under the processes tab, end the Explorer.exe process.
- Now leaving the task Manager open, return to the Command Prompt window and type “cd path” to take you to the folder where the file is. eg. “cd c:My Documents” (Without brackets. Also note there is a space between cd and c:)
- Now type “DEL ” (eg “DEL badfile.exe” again without the brackets.
- Once done go back to the Task Manager and under File – New Task type EXPLORER.EXE. This will kick start the windows GUI (interface)
- Close task manager.

 0 pts.

 

It is necessary to grant *all authority to the user who is trying to delete the file. Use following command on iseries:

ADDDLOAUT DLO(*ALL) FLR(folder-name) USRAUT((userprofile *ALL))

Now use WRKFLR command and display the above folder. Use option-4 against the file (document) you want to delete.

Mohammad Hanif

 0 pts.

 

Thank You all.
I try ALL suggestions, but nothing.
Through iSeries Access Express (WRKFLR command) I can delete PC file, even
through iSeries Navigator, but not windows explorer…
On one other PC I can delete PC files even through windows explorer, but I can’t on my PC.
For all I know, main setting (network, user privileges, etc.) are identical.
I think that problem is in windows user or user profile on iSeries.
I will delete files through other ways that I mention in this email.

 10 pts.

 

since you mention that you can perform this operation on another PC, there must be something different here. In our Client Access config, there is an option for a default user profile used for the connection, which is not the same as the green screen signon. This is the authentication used for what you are trying to do, not the green screen signon info. Check the difference between the 2 PC’s, my guess is they are different.

 0 pts.

 

The files you are trying to delete are

a. Either in use because of a running program (shut down any running programs or restart in safe mode)

b. You do not have rights to the file on the system

 0 pts.

 

Problem solved!
From IBM I receive information that I need to apply PTF#34377. I just did and now I can delete PC files from all PC,’s (who have permission, of course).

 10 pts.

 

I’ve got the identical problem. What version of Operating System was that PTF for, that you installed, that gor the file deletions to work.
Larry

 0 pts.

 

Answer to MichaelK:
We were then on V5R2, PTF: MF34377.
More information (or should I say: all necessary information):
http://www-912.ibm.com/n_dir/nas4apar.nsf/042d09dd32beb25d86256c1b004c3f9a/5018331d705616c386256f4f004201d2?OpenDocument&Highlight=2,MF34337

 10 pts.