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



No argument. Keyfile just points at the index. I'm using the term "index" here generically. It could be an SQL-created index or it could be a logical file, or it could be the key path associated with a DDS-created file. All of them behave exactly the same way when used in CHAIN or SETLL/READE.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, January 23, 2013 11:59 AM
To: Midrange Systems Technical Discussion
Subject: RE: how to sort a file in place?

Dan,

I get what you are saying with single level storage and all. And how the table may be splattered across several disks anyway. I also understand that DSPPFM is just an abstraction, after all, date fields don't really take up that much space.
However, even knowing all that, I still think that IBM put KEYFILE in there for a reason other than to make DSPPFM look good.


Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Dan Kimmel <dkimmel@xxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>,
Date: 01/23/2013 12:22 PM
Subject: RE: how to sort a file in place?
Sent by: midrange-l-bounces@xxxxxxxxxxxx



There's no good reason to sort a file in place on IBMi. Those "records"
aren't going to be "next" to each other on any level of the abstraction
that is single level storage. They'll only wind up "next" to each other on
the reassembly of abstraction that is DSPPFM. The "records" are going to
go in memory pages managed by the database. Those pages are not going to
be next to each other in memory and it doesn't matter. The pages are going
to be spread across disks and disk arms. To be accessed in order most
efficiently, records that are "next" to each other in your ordering are
going to actually be on different disks.

The efficient way to access a database table in order is to build an
index. Let the database use the most efficient index to achieve the
ordering you wish to use.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Lance Gillespie
Sent: Wednesday, January 23, 2013 10:17 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: how to sort a file in place?

If the file is keyed the way you want it sorted, or if there is a logical
the way you want it sorted, there is always RGZPFM.



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Stone, Joel
Sent: Wednesday, January 23, 2013 7:23 AM
To: 'Midrange Systems Technical Discussion'
Subject: how to sort a file in place?

I would like to sort WORKFILE1 in place, preferably using SQL.

Is this possible?

Or must I create another table with SQL CREATE and then CPYF it back to
the original file.

Thanks!



______________________________________________________________________
This outbound email has been scanned for all viruses by the MessageLabs
Skyscan service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.




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.