I mention the SQL just because that's where it was first noticed.
But I ran tests to try to isolate it down and was able to duplicate with
RPGLE without any SQL.

On Tue, Jun 2, 2015 at 3:25 PM, Jeff Young <jyoung0950@xxxxxxxxx> wrote:

Just a WAG, but maybe the SQL Pre-compiler does not know what to do with
the EXTDESC keyword and is looking for the file in your library list?

Jeff Young
Sr. Programmer Analyst

On Tue, Jun 2, 2015 at 1:30 PM, Doug Davie <dougdavie@xxxxxxxxx> wrote:

My RPGLE program uses this:
DCL-F MYFILE DISK(*EXT) USAGE(*INPUT) KEYED
EXTDESC('PRDLIB/MYFILE') EXTFILE(*EXTDESC);

(yes, PRDLIB/MYFILE does indeed exist)

I submit my compile to batch and the program is created.
PRDLIB is not in my library list forthe compile.
DSPPGMREF does indeed show PRDLIB/MYFILE getting used.

Now I have another more involved process that runs in batch, and as part
of
that batch process the CRTBNDRPG command is issued with the exact same
parms I used previously, using the exact same member. In this batch
process
the PRDLIB/MYFILE *FILE is actually being used and is open.
This subsequent compile produces:
RNF2120 - External descriptions for file 'PRDLIB... not found; file is
ignored.

I've also tried this format:
FMYFILE IF E K DISK EXTDESC('PRDLIB/MYFILE')
with the same results.

This actually started off as an SQLRPGLE, which produced:
SQL1001 30 17 External file definition for MYFILE not found.


Why can't the compiler find PRDLIB/MYFILE ?


thanks
-doug
--
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: 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.


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

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.