The DSPPGMREF apparently shows the compile library all the time with any
*FILE object types, but in our case it's still using *LIBL to find the
objects. From one of our clients box:
Object . . . . . . . . . . . . . . . . . . : DE001FM
Library . . . . . . . . . . . . . . . . . : MSIBETOBJS
Object type . . . . . . . . . . . . . . . : *FILE
File name in program . . . . . . . . . . : DE001FM
File usage . . . . . . . . . . . . . . . : Input
Output
Object . . . . . . . . . . . . . . . . . . : IPHC
Library . . . . . . . . . . . . . . . . . : MSIBETDFMT
Object type . . . . . . . . . . . . . . . : *FILE
File name in program . . . . . . . . . . : IPHC
File usage . . . . . . . . . . . . . . . : Input
Update
WRKLIB MSI* gives you:
Work with Libraries
Type options, press Enter.
1=Create 2=Change 3=Copy 4=Delete 5=Display 6=Print
8=Display library description 9=Save 10=Restore
11=Save changed objects 12=Work with objects 14=Clear
ASP
Opt Library Attribute Device Text
(Cannot find object to match specified name.)
And the object is being used:
Change/Usage information:
Change date/time . . . . . . . . . . : 01/02/12 20:15:14
Usage data collected . . . . . . . . : YES
Last used date . . . . . . . . . . . : 01/12/12
Days used count . . . . . . . . . . : 9
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Thursday, January 12, 2012 1:14 PM
To: RPG programming on the IBM i / System i
Subject: Re: Weird issue with a display file
Monnier, Gary wrote:
Is the RPG qualifying the library as part of a USROPN? I've done
this if I don't find the file the library list. If it isn't in the
library list I hardcode the library to the production library it is
supposed to reside in.
No. There is no USROPN, no explicit qualification anywhere in the
source, and it's compiled on a compiler on which I couldn't (without an
OVRDBF and a USROPN) qualify a database file if I wanted to.
And it's evidently been doing this, completely unnoticed, in every other
ILE RPG program that uses a DSPF as well; the only reason why it came up
here is because it's qualified to a library that doesn't exist on the
customer box.
--
JHHL
As an Amazon Associate we earn from qualifying purchases.