Here is part of the readme for my dynamically sort data. The important
thing is that utility supports dates, times, timestamps and negative
numbers.
XVSRTQ is a service program written in RPG/ILE and uses the QSORT API to
sort the data. QSORT is probably the fastest API available to sort data.
XVSRTQ is designed to be used anytime that you need to dynamically sort
data. The most common application is to sort data in a subfile but can be
used to sort anything dynamically..
For example, the user presses a function key over a field, your program
determines which field they are requesting to sort on. Each time it is
done, you might have a different key. You might even provide support for
multiple keys.
XVSRTQ supports single to multiple keys and sorts correctly for numeric
fields with precision, decimals and negative numbers. It, also, supports
dates, time, timestamps and alpha, of course. Special code is required to
sort negative numbers correctly and XVSRTQ handles all that automatically.
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: OVERLAY in a DS having LikeDS and being based on a pointer, (continued)
This mailing list archive is Copyright 1997-2025 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.