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



<snip>
Previously, when we added a field to a PF and recompiled all the LF's
that were based on the file, the new field was in the LF. Now we
don't have to recompile the indexes because the system takes care of
that for us.
</snip>

You're right, ONLY if you do NOT use the RCDFMT clause.

CREATE TABLE QTEMP.ROBBIE (MYCHAR CHAR (5 ) NOT NULL WITH DEFAULT)
Table ROBBIE created in QTEMP.
CREATE INDEX QTEMP.robbieidx ON QTEMP.ROBBIE (MYCHAR)
Index ROBBIEIDX created in QTEMP on table ROBBIE in QTEMP.
alter table qtemp.robbie
add column myint int

DSPFFD FILE(QTEMP/ROBBIEIDX)
Field Level Information
Data Field Buffer Buffer Field Column
Field Type Length Length Position Usage Heading
MYCHAR CHAR 5 5 1 Both MYCHAR
Coded Character Set Identifier . . . . . : 37
MYINT BINARY 9 0 4 6 Both MYINT
Allows the null value

Now, let's try it again with the RCDFMT clause even with ADD ALL COLUMNS.
drop index qtemp.robbieidx
Drop of ROBBIEIDX in QTEMP complete.
drop table qtemp.robbie
Drop of ROBBIE in QTEMP complete.
CREATE TABLE QTEMP.ROBBIE (MYCHAR CHAR (5 ) NOT NULL WITH DEFAULT)
Table ROBBIE created in QTEMP.
CREATE INDEX QTEMP.robbieidx ON QTEMP.ROBBIE (MYCHAR) rcdfmt robbbiei
add all columns
Index ROBBIEIDX created in QTEMP on table ROBBIE in QTEMP.
alter table qtemp.robbie
add column myint int

DSPFFD FILE(QTEMP/ROBBIEIDX)
Field Level Information
Data Field Buffer Buffer Field Column
Field Type Length Length Position Usage Heading
MYCHAR CHAR 5 5 1 Both MYCHAR
Coded Character Set Identifier . . . . . : 37
So, the

Rob Berendt

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