|
I know you've already gotten answers to this, but I thought I'd post the RPG solution, in case its useful to anyone. (This code is V3R2 compatible, but should work on any later release) D unlink PR 10I 0 ExtProc('unlink') D path * Value D rmdir PR 10I 0 ExtProc('rmdir') D path * value D killme S 50A C* Delete the file c eval killme = '/\timtest/qs1testfile.csv' + x'00' c callp unlink(%addr(killme)) C* Delete the directory c eval killme = '/\timtest' + x'00' c callp rmdir(%addr(killme)) c eval *inlr = *on On Fri, 22 Sep 2000, Hatzenbeler, Tim wrote: > I wrote a file to the IFS wrong! And now I can't delete it with the WRKLNK > or the DEL command.... I was wondering if any one had a rpg program that > does a delete of an IFS file... or could recommed another way to kill the > file. > > my problem child: I'll throw some extra spaces in to help clarify the > problem... ' / \ timtest \file.csv ' > > as it really appears on the system... > Object . . . . . . . . . . . . . > '/\timtest\qs1testfile.csv' > > tia, tim > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.