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



James,

Want to be sure that I understand. When you try to run the program in
question, are you getting a CPF4101 error (file not found)? Even though the
file exists in one of the libraries in the library list?

DSPPGMREF, by the way, does *not* indicate which library the RPG program is
going to use to retrieve the file; only the library the file (database or
display) was in when the program was compiled. I don't have a CMS use I use
project libraries; even the production copies of the programs usually show
the object reference as something like "PROJ0001/DISPLAY", but they still
find DISPLAY in the PRODLIB (PROJ0001 having been deleted long ago in this
example).

Or am I still not comprehending correctly?

Jerry C. Adams
IBM i Programmer/Analyst
In 1996 psychologists reported that suicide rates in different regions of
the U.S. correlated with the amount of country music being played on the
radio. The greater the amount of country music the more likely it was that
suicide rates would be higher. -EUI
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of James Lampert
Sent: Thursday, January 12, 2012 12:53 PM
To: RPG programming on the IBM i / System i
Subject: Re: Weird issue with a display file

Jerry C. Adams wrote:
Never done it with display files, but frequently with database files.

Uh, I don't think I made the problem clear:

RPG is library-qualifying the reference to the display file, when
qualification is neither necessary nor desirable. And since the program
in question was compiled on our V4R4 box (with dummy service programs),
using the V4R2 compiler, it's doing it at a level where I couldn't
(without an OVRDBF) qualify a database file if I wanted to.

It makes no sense.

--
JHHL

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