×

Good News Everybody!

The new search engine is LIVE!

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




yep that's kinda what prompted the question lol...i want to keep blank
records..just not the deleted ones!!! LOL

Thanks,
Tommy Holden




vhamberg@xxxxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
04/24/2007 05:18 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: RPG / IFS and deleted records






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

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.