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



Thanks for the feedback Scott. I was following some documentation I found on
another site to implement the QLGSORT API, but was unable to get it to work
outside of their example. I think I'll take your advise and use the sort()
method.

On Fri, Jan 2, 2009 at 5:13 PM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

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

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