× 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.



RGZPFM to get rid of the deleted records!

Just kidding!

No there's no alternative if using the IFS APIs - the deleted records are part
of the object - all they have is a bit turned on in the first byte (that we
never see) that indicates it is deleted - so it will be read no matter what.

Now how do you know between deleted and a record that happens to have all
blanks in alpha fields?

Vern

-------------- Original message --------------
From: Tommy.Holden@xxxxxxxxxxxxxxxxxxxxx

I'm sure this is no surprise to some of you on this list...but I'm
processing a PF via IFS APIs (for a generic file program). It seems that
deleted records are processed as well as undeleted records. Does anyone
have a better solution than just bypassing the records that contain all
blanks in the returned data?

My RPG is pretty basic so I'll omit the IFS copybook stuff...
http://code.midrange.com/index.php?id=ca7de10425

when it hits a deleted record the data field is all blanks.

Thanks,
Tommy Holden
--
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:

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.