×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




That is correct.  In fact, if there are multiple records that match the
keylist, and you want to delete them all, you have to CHAIN/READE to each
one of them before deleting them.

Much different from the SQL DELETE function.


On 7/1/06, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Am I reading this wrong? From the RPG manual:

"... If a search argument (search-arg) is specified, the DELETE
operation deletes the current record (the last record retrieved). The
record must have been locked by a previous input operation (for example,
CHAIN or READ). ..."

I can not write a line of code like this and expect the record to be
deleted unless I chain(or some-such) to it first?

  C  Key     delete  filename

http://tinyurl.com/gou7x



--
-----------------------------
Booth Martin
www.martinvt.com
-----------------------------
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.