Undeletable files in ifs ???

Hi Experts,

Due to some application error (I assume) I have on my IFS 3 undeletable stream files

\tstdir\xls            
\tstdir\xlstest        
\TSTDIR\TEST.XLS

!!!  this is not a path and file, this is the whole file name that I see in the OpNav when I open the root dir. !!!

I tried to delete them via RMVLNK but get the message: "Object not found.  Object is /dcsdir/xls."
delete it from the IFS root dir, by pressing the delete key give: "The file, \\tstdir\xlstesr, was not found"
Create a file-share and delete it from there...... error: "Cannot delete file: Cannot read from the source file or disk"
Even a mapping to a drive and delet from a DOS prompt give: X:\dcsdir\xlstest

Of cause I also tried to rename the files but nop.

So I think this is a nice puzzle

Regards,
Murph

LVL 17
Theo KouwenhovenApplication ConsultantAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

daveslaterCommented:
Hi

Been there done it but can not rememeber how!

have you tried wrklnk , going to the correct place and then deleting it!

If not the it can be done via the API.


Dave
Theo KouwenhovenApplication ConsultantAuthor Commented:
Hi Dave,

wrklnk and option 4 is the same as rmvlnk.
So yes I tried it and no it's still there.

Member_2_276102Commented:
Murph:

These can sometimes be deleted by using generics:

 ==>  rmvlnk  '/xxxaaa*'

Or you can similarly try:

  qsh>  rm '/xxxaaa*'

Also, try using the EDTF '/dir' ability to bring up a list of files and subdirectories in directory '/dir' and use option 4=Delete File or option 9=Recursive Delete.

If none of those help, I can supply a function that will delete any file you can supply a name for. The trick is in determining _exactly_ what the file name is.

Tom
Member_2_276102Commented:
Sorry, I should've expanded on the QShell rm utility option. The rm utility will accept a filename or a _quoted_ filename. If quoted, it should delete _exact_ matches. In the example [rm '/xxxaaa*'] it shouldn't interpret the [*] as a wildcard; it should interpret it as a character in the name.

Tom

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IBM System i

From novice to tech pro — start learning today.