|
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 03/07/2018 09:06:18
AM:
Craig,
I think I always read right over that 'filename' in EXTFILE(filename) can
be a variable in the documentation--it's right there. RPG isn't my first
language (I guess it shows sometimes), but I keep learning.
Thanks so much for straightening me out.
Michael Quigley
Computer Services
The Way International
----- Message from Craig Richards <craig@xxxxxxxxxxxxxxxx> on Tue,<rpg400-l@xxxxxxxxxxxx>
06 Mar 2018 18:35:44 +0000 -----
To:
"RPG programming on the IBM i (AS/400 and iSeries)"
01:00:02
Subject:
Re: On Triggers and library lists.
Michael
No.
You could for example have ExtFile( QualFile )
Where QualFile is varchar( 21 )
Which you set to ‘somelib/file’ before opening the file.
You could then close the file, change QualFile and open it again from a
different library.
On Tue, 6 Mar 2018 at 18:21, <MichaelQuigley@xxxxxxxxxx> wrote:
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 02/23/2018
access.PM:
----- Message from Craig Richards <craig@xxxxxxxxxxxxxxxx> on Fri,<rpg400-l@xxxxxxxxxxxx>
23 Feb 2018 17:33:59 +0000 -----
To:
"RPG programming on the IBM i (AS/400 and iSeries)"
Subject:
Re: On Triggers and library lists.
Hi Charles,
Yes I usually prefer that method too but not all files are RPG
intoIn particular there is one with a CLOB on.
I don't believe you can open files with CLOBs in native RPG.
Also the program is building JSON objects using the DB2 JSON_OBJECT
publishing function from data on the trigger after image for insert
getthe CLOB so that all needs to be SQL.
But I agree, I have a particular preference for ExtFile when I can
upaway
with it.wrote:
best regards,
Craig
On 23 February 2018 at 17:24, Charles Wilt <charles.wilt@xxxxxxxxx>
I wouldn't use an override....
Instead, use the EXTFILE() keyword on the f-spec..
Charles
Sorry, but I'm really behind on my e-mail and I'm just getting caught
thison this thread.
Doesn't the library on the EXTFILE keyword have to be hard coded at
compile time? And wouldn't that mean it's useless for the point of
filethread--i.e., if the trigger can handle the same file in multiple
libraries, using EXTFILE would force it to update the file in the
specified library and not necessarily one in the same library as the
misunderstanding),causing the trigger to fire?
Thanks in advance for clarifying my understanding (or
Michael Quigley
Computer Services
The Way International
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.