• Subject: Re: Sub Files.
  • From: "Peter Dow" <pcdow@xxxxxxxxx>
  • Date: Fri, 10 Dec 1999 11:27:59 -0800

You might want to do the same thing that IBM does on the WRKACTJOB where you
can position the cursor on a column and press F16 to sort by that column,
*without* reloading the subfile. Another example would be a subfile with a
name and a date, you load it initially sorted by name, then allow the user
to choose to have it sorted by date instead.

I don't know of any API that will sort a subfile. I can think of two
solutions: 1) reload the subfile in the desired sequence; or 2) read the
subfile into a multi-occurrence data structure, then use the QLGSORT API
(described in "AS/400e series: System API Reference OS/400 National Language
Support APIs", SC41-5863-01) to sort it, then reload the subfile from the
MODS.

HTH
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax

From: Alan Campin <Alan.Campin@CaseLogic.com>
> No, but why would you want to? The sort is based on the input path from
the
> data loaded. At least, that is how I always do it.

> From: namal serasinghe [mailto:serasinghe@hotmail.com]
> Is there any API to sort the Sub-files. Please let me know.

> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---


__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.