|
Joep, You can supply the file name and library as variables, just declare a variable as a data structure and break it apart; it's RPG IV, not Rocket Science. On another note, if you use EXTFILE and/or EXTMBR remember that THESE ARE NOT OVERRIDES. They are direct opens of the specific file/member. So you don't get the same side-effects as issuing an OVRDBF command. That is, there's no SHARE(*YES) or SEQONLY(*YES) capability. Those options still need to be issued via an OVRDBF command. -Bob Cozzi -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joep Beckeringh Sent: Wednesday, April 14, 2004 9:14 AM To: RPG programming on the AS400 / iSeries Subject: Re: DFTACTGRP(*NO) ACTGRP(*CALLER) was RE: More ILE 101 rob@xxxxxxxxx wrote: > Have you thought about newer versions of RPGLE where you can use USROPN > and EXTFILE keywords on your F spec? > > Rob Berendt Well, USROPN is not that new; even RPG III had it (UC somewhere in the F-spec). Besides, using QCMDEXC from within RPG for issueing an override is not much use without USROPN (unless you do it for a call to another program). As for EXTFILE: so far I have not made much use of it. Most overrides in our applications fall in two categories: SHARE(*YES) for OPNQRYF and MBR(&USRID) for multi-member work files. For the first category EXTFILE is no use; for the second category we could use EXTMBR when we pass &USRID as a parameter. The debate about that one is still on :-) Apart from that I find the syntax of EXTFILE cumbersome; it is a pity you can't supply filename and library as separate parameters. Joep Beckeringh _______________________________________________ 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 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.