Ansicht
Dokumentation

09972 - Problems deleting special files

09972 - Problems deleting special files

ROGBILLS - Synchronize billing plans   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Problems deleting special files

Hi Zll,

we fixed that prob with a short report below:

It works fine !!!!! ;-))
________________________________________________________
report zsfildlt message-id 38.

parameters: filename(128)
default '/usr/sap/P01/DVEBMGS30/work/C:\TEMP\kstart2.txt'
obligatory.

data: antwort(1) type c.

start-of-selection.
if filename ca '\'.
call function 'POPUP_TO_CONFIRM_STEP'
exporting
textline1 = text-001
textline2 = filename
titel = 'Confirm delete'
importing
answer = antwort.
if antwort = 'J'.
delete dataset filename.
if sy-subrc eq 0.
write: / filename.
message i000 with 'File successfully deleted.'.
else.
message e000 with 'Failed to delete file.'.
endif.
else.
message i000 with 'Action canceled by user.'.
endif.
else.
message i000 with 'File can be deleted from the OS-level.'.
endif.



Have Fun

cya



Best Regards/mit freundlichem Gruss

Thomas Lindner
AS/400 & SAP R/3-Basis Support

UNIELEKTRO Fachgroßhandel Gmbh & Co. KG
Informationssysteme/Systemtechnik
Industriestraße 21-39
65760 Eschborn

T +49 (0) 6196 477381
F +49 (0) 6196 477776
mailto:Thomas.LindnerZunielektro.de <mailto:Thomas.LindnerZunielektro.de>


,,,
( . . )
--------ooO-(_)-Ooo--------

-----Ursprüngliche Nachricht-----
Von: Catherine Paalvast [mailto:cpaalZams-partners.com]
Gesendet: Freitag, 2. Mai 2003 04:57
An: DoNotReply@consolut.eu
Betreff: Re: Problems deleting special files


Did you try using iSeries Navigator to delete the files?

I had the same problem a few releases ago and IBM's answer was to run ftp
from the workstation, cd to the directory in the ifs, and delete them from
there. That worked well.


----- Original Message -----
From: Zeilfelder, Thomas
To: 'DoNotReply@consolut.eu'
Sent: Thursday, May 01, 2003 8:04 AM
Subject: AW: Problems deleting special files


Hi Juan,

very strange, I'm not sure if this is an OS400 bug, normally \ is not a
valid character for file names. You can try to delete the file with
QSH-command rm ./\\idocs\\test.txt or ./?idocs?test.txt (Hint: try ls
instead of rm first. If ls shows the file then rm can delete it). If this
doesn't work then you can move (QSH-command mv) all files to a different
directory, move the files you need back and use rm -rf to delete the other
directory.

Thomas

-----Ursprüngliche Nachricht-----
Von: Joan Mir Rubio [mailto:jmirZcamper.es]
Gesendet: Donnerstag, 1. Mai 2003 11:19
An: DoNotReply@consolut.eu
Betreff: RE: Problems deleting special files


Thank you Chris.

Using the QSH we have deleted all files with c:* and d:*, but there is a
last case of files that we can't delete. Files STMF with name
\idocs\test.txt (for example), that were created with the path inside the
name because there wasn't the directory idocs.

Thank you very much.
Best regards,
Juan


> -----Mensaje original-----
> De: Sugg, Chris [mailto:cgcsuggZnmhg.com]
> Enviado el: miércoles, 30 de abril de 2003 19:30
> Para: 'DoNotReply@consolut.eu'
> Asunto: RE: Problems deleting special files
>
> Hi Juan.
>
> From the AS400 command line:
>
> QSH
> cd <directory where your files are located at /usr/sap/....>
> rm <file to be deleted>
>
> In your case rm c:* or rm d:* , This would remove all STMF files that
> started with c: or d:. Also remember that it is case sensitive.
>
> Good luck,
> Chris Sugg
>
> -----Original Message-----
> From: Joan Mir Rubio [mailto:jmirZcamper.es]
> Sent: Wednesday, April 30, 2003 9:17 AM
> To: DoNotReply@consolut.eu
> Subject: Problems deleting special files
>
>
> Dear group,
>
> Sometimes our sap users save files in the AS/400 server instead of his
> local hosts using windows names. Then, SAP saves the files in the
> /usr/sap/<sapid>/DVEBMGS<inst number>/work with names like
>
> c:\prueba.txt STMF
> d:\pgc.txt STMF
>
> or if the path does not exist, it joins it with the name.
>
> \IDOCS\IN01535.txt STMF
> \QDLS\SAPTOOL\CLIP STMF
>
> I have tried to delete them several times with qsecofr using WRKLNK or
> the navigator, but it always returns a
> "path error with name /usr/sap/D03/DVEBMGS13/work/c:/prueba.txt"
>
> Do you how can we delete them?
>
> Thank you,
> Juan Mir
>
>
>
> Have a look to our homepage at: http://www.consolut.net
<http://www.consolut.net>
> DoNotReply@consolut.eu
>
> Your use of consolut is subject to
http://www.consolut.net <http://www.consolut.net>
>
>
>
> Have a look to our homepage at: http://www.consolut.net
<http://www.consolut.net>
> DoNotReply@consolut.eu
>
> Your use of consolut is subject to
http://www.consolut.net <http://www.consolut.net>
>



Have a look to our homepage at: http://www.consolut.net
<http://www.consolut.net>
DoNotReply@consolut.eu

Your use of consolut is subject to http://www.consolut.net
<http://www.consolut.net>


consolut Sponsor



Have a look to our homepage at: http://www.consolut.net
<http://www.consolut.net>
DoNotReply@consolut.eu




[Non-text portions of this message have been removed]



consolut Sponsor

<http://rd.consolut.net/M=251812.3170658.4537139.1261774/D=egroupweb/S=17050073
89:HM/A=1564415/R=0/*http://www.netflix.com/Default?mqso=60164784&partid=317
0658>

<http://us.adserver.consolut.net/l?M=251812.3170658.4537139.1261774/D=egroupmai
l/S=:HM/A=1564415/rand=456881807>

Have a look to our homepage at: http://www.consolut.net
<http://www.consolut.net>
DoNotReply@consolut.eu

Your use of consolut is subject to the consolut Terms of Service
<http://www.consolut.net> .




[Non-text portions of this message have been removed]


Durban Tours - Südafrika Safari

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 9960 Date: 20240328 Time: 115608     sap01-206 ( 4 ms )