|
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-sorta
subfile upon user request. I setup the sort request by calling theQLGSORT
API, then retrieve the results by calling the QLGSRTIO API. However, thean
QLGSRTIO API is returning garbage for results. Neither API is returning
error.
Any insight would be very helpful.
John
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.