That's actually what I'm going to end up doing. I'll probably do it with
MS ACCESS though.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
eduard@xxxxxxxxxxxxxxxxxxxxxxx
Sent: Friday, June 01, 2007 4:56 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Deleting Records within a CSV file on the IFS
Steve,
Perhaps I'm a little to practical but.....
If the CSV file has one record format.
Why not get it into a real file File (CPYFRMIMPF).
Delete the records you do not want.
Replace the original CSV file with it (CPYTOIMPF).
Even if it is not an nicely formatted CSV this is still a possible way
but then using a flatfile and some record recognition.
This seems to me a lot more practical and easier than fiddling around on
the IFS itself.
We do not have to forget that we can do it in other way's.
Let's use these other ways and profit from it.
Regards,
Eduard.
----- Original Message ----
From: "Coyle, Stephen F." <SCoyle@xxxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, June 1, 2007 4:10:07 PM
Subject: Deleting Records within a CSV file on the IFS
Hi All,
I've seen plenty of examples on opening, reading, writing, and
closing stream files on the IFS but I haven't seen anything on deleting
lines within the stream file.
Do I have to read the original file and write it back out
excluding the records I don't want? Or is there a better way?
Thanks for pointing me in the right direction....
- Steve
As an Amazon Associate we earn from qualifying purchases.