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



As others have said, you can't add a new member to an index - it IS an LF but it has special restrictions - like no more than one member. Nothing in SQL knows anything about members.

HTH
Vern

Sharon wrote:
Yes, an index created through SQL, it appears as a LF object.

How to add a new member when one is added to the main file the index was created against.

Thanks for the input so far.


Date: Wed, 25 Mar 2009 11:13:51 -0500
From: vhamberg@xxxxxxxxxxx
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Adding a member to an index

Sharon - are you talking about an SQL index?

Mark S. Waterbury wrote:
Hi, Sharon:

First, you need to change your logical files to allow more than one member, e.g.:

CHGLF library/filename MAXMBRS(*NOMAX)
or
CHGLF library/filename MAXMBRS(some-number)

Then, see the ADDLFM (Add Logical File Member) command, e.g.:

ADDLFM FILE(library/lfname) MBR(lfmbrname) DTAMBRS((library/pfname (pfmbrname)))

Each LF can have one or more members, each "over" one or more members in the "base" PFs ...

Hope that "makes sense"?

Mark

> Sharon wrote:
Hello, I am trying to figure out how to handle adding a member to an index on a file. Did some testing, added a member to the main file, and the index does not automatically pull it in like a LF would.
When I dropped the index and recreated it, you cannot see if it is there when you do a WRKF command, and the total records listed went down from it's previous amount.

What is the proper way to handle this? Any help would be appreciated.

Sharon

_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail®.
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme

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.