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




Thanks for your reply Peter.
Sorry Peter, I know what you are saying, but for me to create a view
against the 26th member of the file, that would mean me having to DELETE
the 1st 25 members, create the view, and then reload the DELETED 1st 25
members back is just not feasible (although in the business I should
realize NEVER to say NEVER)



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill

rpg400-l-bounces@xxxxxxxxxxxx wrote on 06/28/2007 04:08:43 PM:

Hi Alan,

That's correct. However, you can override that view to another member
before using it, just like you can override a physical file before using
it. When you override to a member other than the first member in the
file, that's the only member that the view sees.

The *FIRST member is normally the first member that was added to the
file. However, if you added 4 members, then deleted the first two you
added, then the *FIRST member would be the one you added 3rd. Sounds
confusing, but it's actually pretty straightforward. If I do

CRTPF FILE(QTEMP/TEST) RCDLEN(1) MBR(*NONE) MAXMBRS(*NOMAX)

ADDPFM FILE(QTEMP/TEST) MBR(GEORGE)

ADDPFM FILE(QTEMP/TEST) MBR(PAUL)

ADDPFM FILE(QTEMP/TEST) MBR(RINGO)

ADDPFM FILE(QTEMP/TEST) MBR(JOHN)

DSPPFM FILE(QTEMP/TEST) MBR(*FIRST) displays member GEORGE.

Now I remove a couple of members:

RMVM FILE(QTEMP/TEST) MBR(GEORGE)

RMVM FILE(QTEMP/TEST) MBR(PAUL)

DSPPFM FILE(QTEMP/TEST) MBR(*FIRST) displays member RINGO.

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

Alan Shore wrote:
Thanks for your reply Peter
With ALL the testing on this that I've done based upon the suggestions
that
I have received (which as always is MUCH appreciated) I'm NOT 100% sure
of
my following reply, but I am 95% sure.
Anyway, to answer your question.
The view that gets created only has ONE member, no matter what I tried
with
the OVRDBF, and I think (only 75% sure on this) but the view gets
created
from the *FIRST member (whatever that is)


--
This is the RPG programming on the AS400 / iSeries (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.

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.