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



Rory Hewitt wrote:

First, why are you defining the subfields as being overlays of another
subfield? Why not simply define them as e.g.:
...
It's a lot simpler and easier to read, I think. There's no reason to use
overlays (just like there isn't really a reason to name reserved fields in
RPGLE, so I leave them blank). It's all just style, though, since both
methods work fine.


For API receiver variables, I like to use overlays because it makes it easy to correlate the data structure to the documentation, and it makes it easy to skip fields you don't care about.

D RCVM0100 DS 65535 Qualified
D BytesRtn 10I 0 Overlay(RCVM0100:1)
D BytesAvail 10I 0 Overlay(RCVM0100:5)
D MsgID 7A Overlay(RCVM0100:13)
D RplDtaLenRtn 10I 0 Overlay(RCVM0100:45)
D RplDtaLenAvl 10I 0 Overlay(RCVM0100:49)




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