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



D                       DS              Align
D PtrAry                32      Dim(100)
D ThePtr                  *   Inz(*Null) Overlay(PtrAry:1)
D The1stSortField        2A   Overlay(PtrAry:17)
D The2ndSortField        2A   Overlay(PtrAry:19)
D Filler                12A   Overlay(PtrAry:21)

That'll work as long as you have 2047 or fewer entries to sort. (or 1023 if you're running an older release of OS/400).

Also, your filler field is unnecessary, since the entries in the DS overlay a 32A field, they'll always be aligned on a 32 byte boundary, with or without the filler.

Also, the ALIGN keyword is doing nothing in this example, since there's only one field in the data structure, (not counting the overlaid ones) there's no field after it to align.


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.