× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks for the replies....
Now I won't waste time going down the wrong road!

Have a good weekend everybody...

- Steve

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, June 01, 2007 4:21 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Deleting Records within a CSV file on the IFS

Hi Steve,

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?

Yes, that's exactly what you have to do. Depending on the situation,
you may be able to use a utility like grep or awk to do it for you, but
one way or another, you're going to have to read the entire file and
write out a new file.

(Or use some kind of "field value" that identifies that a particular
line should be "skipped")

This is pretty much the way all text files work... in fact, almost every

computer document, aside from a database, works this way. (Actually,
databases work this way, too... except that they manage the "special
field values" under the covers so you never see them.)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.