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



I understand and use this form of sorting data (from the reference manual):

*...1....+....2....+....3....+....4....+....5....+....6....+....7...+....
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++
* In this example, the base array has the values aa44 bb33 cc22 dd11
* so the overlaid array ARRO has the values 44 33 22 11.
*D DS
D ARR 4 DIM(4) ASCEND
D ARRO 2 OVERLAY(ARR:3)
D*
CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq....
C
* After the SORTA operation, the base array has the values
* dd11 cc22 bb33 aa44
*C
C SORTA ARRO*
===============================================================================

But I am thinking I should be learning about Qualified data structures.
D ArSfl ds qualified
D ArField1 like(Field1) dim(300)
D ArField2 like(Field2) dim(300)
D ArField3 like(Field3) dim(300)
D ArField4 like(Field4) dim(300)
D ArField5 like(Field5) dim(300)
D ArField6 like(Field6) dim(300)
D ArField7 like(Field7) dim(300)

If I do:
sorta ArSfl.ArField4
will the other 6 fields be sorted too, and not corrupt my data?

(Any other comments about this are more than welcome. Something is making me think I am wandering too far astray.)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.