|
Rob, I am pretty sure that you can get what you need with DDL defined indexes. We are on V5R1 and have working applications which create indexes on the fly with RUNSQLSTM in CL [CREATE INDEX QTEMP/FILEL ON QTEMP/FILEP (Column3, Column 1, Column 5)]. We then override to the index in the CL and call RPG which declares the index in F specs and performs SETLL with a key list and READ/READE operations. Haven't had any problems. -----Original Message----- from: rob@xxxxxxxxx sent: Wed, 20 Aug 2003 14:41:39 -0500 subject: RE: Record name the same as the file name Thou art correct. However, if thee is enamored with logical files based on alternate keys, (like customer name versus customer number), that is where thee demon lies. That is the difference between CREATE TABLE and CREATE INDEX. A logical file created with CREATE INDEX cannot be specified as the file in an RPG program using native access. A logical file created with CREATE VIEW can. A logical file created with DDS can use both the properties of CREATE INDEX and CREATE VIEW and still be specified in an RPG program using native access. I came up with some suggestions for this in my email entitled "Key structure on the File specification" but have so far garnered no response. Alas. Rob Berendt
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.