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



Joined views can be update-able....as can joined logicals...

Biggest problem with views, rrt RLA, is that they can't be keyed...

But to answer your question, I no of no way to open a file as input or
update with RPG RLA other than having two f-specs.

Charles

On Tue, Oct 2, 2012 at 6:15 PM, James Lampert <jamesl@xxxxxxxxxxxxxxxxx> wrote:
Continuing with some RPG-specific questions on the scenario
(substituting an SQL join-view for a PF) I've been discussing on the
Midrange list:

Suppose we have an RPG program that's accessing the file natively. Since
we only know part of the record structure at compile time (and don't
actually need to know the rest of the record structure), we're treating
it as program-described, and since we don't even know that the file
exists in any particular installation at compile time, we're using USROPN.

But in this scenario, we don't, at compile time, even know whether the
file is going to be a PF or a join-view.

I'm assuming that SQL join-views are like DDS join-logicals: they're
read-only, at least through native RLA, and will throw an exception if
you try to open them for update (correct me if I'm wrong).

Other than having separate F-specs, is there a way, in native RLA, to
defer until runtime whether the file is opened for input or for update?

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


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.