×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




qp0lreaddir is supposed to be able to do that, but I've never tried it.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/apis/qp0lreaddi
r.htm




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan
Sent: Tuesday, May 1, 2018 10:51 AM
To: RPG400-L@xxxxxxxxxxxx
Subject: IFS READDIR sort options

We are using Scott's IFS APIs to work with the IFS in RPG. I have an
application that loads a subfile from READDIR calls.

I am wondering if I'm missing an option to sort the results of
multiple
READDIR calls by the object's modification date (descending). I
imagine any
such option would need to occur prior to the first READDIR call, so I
looked at
OPENDIR but there is no parameter defined to handle that.

So, I'm guessing I need to collect all of the READDIR calls into an
array or temp
file and sort that before loading the subfile. But I just wanted to
make sure I
wasn't missing something simpler. FWIW, I expect that the number of
entries retrieved will always be less than 100.

- Dan
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

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