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



The APIs work when used correctly, therefore I'd say you're using them incorrectly. That's about as much information as I can provide based on the amount of detail you've provided. Obviously, I can't tell you what you've coded wrong unless I can see the code.

However, I have some suggestions:

a) When I've used QLGSORT to sort a subfile, I did not need to use QLGSRTIO. I did it purely with QLGSORT. I'm curious as to why you're using QLGSRTIO?

b) I strongly recommend against using QLGSORT. There are much easier, and also better performing ways to sort data. the SORTA RPG op-code is one. The qsort() API is another. My benchmarks have shown those two methods to be MUCH faster than the other alternatives (QLGSORT, data queues, user index, etc, were much slower.)



John McCleskey wrote:
I'm attempting to utilize the sort API's QLGSORT and QLGSRTIO to re-sort a
subfile upon user request. I setup the sort request by calling the QLGSORT
API, then retrieve the results by calling the QLGSRTIO API. However, the
QLGSRTIO API is returning garbage for results. Neither API is returning an
error.

Any insight would be very helpful.

John


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.