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



Can't agree with you re the comparison. New BIFs come in all the time. This one is simple and to the point. Pointers have been there since day 1 and still people avoid them like the plague. You should see the expression on the faces of 70% of the class when I even mention the word!

But you can already do what you are asking for and while a slightly simpler syntax might be possible I'm not convinced it is worth the effort.

e.g.

dcl-ds myDS;
aField char(5);
bcFields;
bField char(5) Overlay(bcFields);
cField char(5) Overlay(bcFields: *Next);
comboBC Overlay(bcFields);
dField char(8) Overlay(comboBC);
eField char(2) Overlay(comboBC: *Next);
end-ds;


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 16, 2018, at 12:21 PM, Lynne Noll <lvwnoll@xxxxxxxxxxx> wrote:

THe main issue would not be that programmers are unfamiliar with the pointer logic. After all, they would be unfamiliar with a new bif.


I see the issue as being you can't overlay a range of fields: fld001 through fld52 in a data structure. If you could, you wouldn't need to worry about the starting position. And it would be clear what you were doing, and it would adjust to changes. If you are going to change RPG, this makes more sense to me.









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

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD


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.