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



The proper way would be to stop using multiple member physical files
(except for source). Can you do that or are you constrained by archaic
packaged software?

My interpretation of what you are trying to do is create an SQL index over
a multiple member table and you want to automatically have the table's
member's data added to the rows processed by that index and the new table
member is added. Well, not even a DDS LF does this. There is no ADDLFM
MBR(*ALL). You have to add the members individually.

MYPF
R MYPFR
MYCHAR 5A

MYPFLF
R MYPFR PFILE(MYPF)
K MYCHAR

UPDDTA ROB/MYPF
RUNQRY QRYFILE(ROB/MYPFLF)
A
B
C

ADDPFM FILE(MYPF) MBR(MBR1)
UPDDTA FILE(ROB/MYPF) MBR(MBR1)
RUNQRY QRYFILE((ROB/MYPF MBR1))
1
2
3
RUNQRY QRYFILE(ROB/MYPFLF)
A
B
C
What you can do is:
ADDLFM FILE(MYPFLF) MBR(BIGONE) DTAMBRS((MYPF (MYPF MBR1)))
But it's still 'by hand'.

Probably more a midrange-l topic than a rpg one.

Rob Berendt

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.