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



--- My position is that, even though you CAN read an index to get to table data ... you SHOULDN'T because that's not what indexes are intended to be used for.

DDS Logical files were intended to be used to access the data. You can generate a DDS index to replace just about any DDL logical file. However, most RPG programs would need to continue accessing the data through the index.

If you are replacing all RPGLE IO with SQL IO (like a convert to SQLRPGLE) then the Table can always be referenced in lieu of just about any Index.

If you are just replacing the DDS logical with a DDL logical, then the RPGLE program would need to continue to access the data using a DDL Index with the same keys as the original DDS Logical.
To do anything else would probably break the functionality of the program.


I would definitely suggest reading Birgitta's article.

http://www.ibm.com/developerworks/ibmi/library/i-sql-indexs-and-native-io/index.html?ca=drs-

Posting it again in case you missed it the first time.

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

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.