|
Dennis,
In his original post, Alan showed an example of how there might be a
"hole"
in the middle:
Hopefully I explained it correctly, here is an example
1
2 data 1
3
4
5 data here
6 f=data 2
Becomes
1 data 1
2 data here
3 f=data 2
4
5
6
NOTE - I don't want the information sorted, just moved up
Rory
On Tue, Apr 26, 2011 at 3:20 PM, Dennis Lovelady
<iseries@xxxxxxxxxxxx>wrote:
Hmmm.... not sure what value there is in moving the elements one at atime
as opposed to en masse. Unless you're thinking there may be a "hole"in
thedescribed
middle and you need to compress it out. But a routine like that
could be used to ensure that that doesn't happen.through, I
I'm in the midst of other activities, but before this night is
will try to put together an understandable sample to show the valueof this
sort of logic, and in the process show you how it could be used tocompress
out the blanks, should they be introduced. 'Cuz I think it's worthit. :)
--
Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
This is the RPG programming on the IBM i / System i (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 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.