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



That would work. The downside being we'd have to delete and recreate the views when the underlying table was deleted.



-----Original Message-----
From: Mark S Waterbury [mailto:mark.s.waterbury@xxxxxxxxxxxxx]
Sent: Friday, January 27, 2017 10:52 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Override PF in view

Justin:

Suppose this is your original view:

Create view JOIN_VIEW as (
Select * from MYLIB.TABLE1 A
Join select * from MYLIB.TABLE2 B on A.ID = B.ID
Join select * from MYLIB.TABLE3 C on B.ID = C.ID
)

Now, create an alternate view that uses the "other" table (or PF), e.g.:

Create view JOIN_VIEW2 as (
Select * from MYLIB002.TABLE1A A
Join select * from MYLIB.TABLE2 B on A.ID = B.ID
Join select * from MYLIB.TABLE3 C on B.ID = C.ID
)

Then, you can issue:

OVRDBF FILE(JOIN_VIEW) TOFILE(JOIN_VIEW2)

and run your program or query as before, and that should do what you want ...

Hope that helps,

Mark S. Waterbury



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.