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



Hi John,

The library list is used provided there is no override and the F-spec
doesn't specify a library.

A file override doesn't necessarily have to take place in the calling CL
program. The RPG could do the override using QCMDEXC (or similar) or it
could call another program that does an override before it opens the file.

Is there a command involved that calls the CL? DSPCMD <command-name> will
show a Current Library and a Product Library.

Could your file(s) in question have a trigger program?

I can't think of anything else at the moment.

Hope this helps.

Glenn Gundermann


Subject: File opens in RPG III
From: "John McKee" <jmmckee@xxxxxxxxxxxxxx>
Date: Mon, September 16, 2013 8:27 pm
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Priority: Normal


I have spent a lot of time trying to modify this vendor program. It is
used to set flags and submit an end-of-day job. We never modify the
parameters it presents on screens. So, purpose is to just have this thing
get fired off by the job scheduler for an unattended end-of-day. It does
a
lot of questionable stuff, and I am not convinced I have found all the
weirdness buried in this thing.

A CL calls it. I have specifically added libraries to the library list.
If it is a test run, I add test libraries in front of anything else. I
also change the current library for either production or test.

Testing it today, using the test libraries, and I verified the library
list is correct, the RPG program updated a file in the production
environment, despite that same file existing higher in the library list
(lower number).

I thought that the library list was used when RPG opens files. The
original CL has no OVRDBF commands to change anything. Yet, here I have a
production file getting changed.

I have to ask a really stupid question: Am I correct that the library
list
is used to locate files when RPG opens them? There is no ILE in this
thing.

Thanks for any assistance.

John McKee



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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