I could understand it if the Secure(*Yes) keyword was used.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
lgoodbar@xxxxxxxxxxxxxx
Sent: 08 January 2009 18:44
To: midrange-l@xxxxxxxxxxxx
Subject: RE: Recompile required for OVRDBF?
Thanks for the explanation Scott. Fortunately, these are older OPM CL
and RPG/400 programs (the typical CL "driver" and RPG logic model), and
the RPG doesn't specify any libraries for its files. Will keep in mind
if I see one.
--Loyd
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, January 08, 2009 12:20 PM
To: Midrange Systems Technical Discussion
Subject: Re: Recompile required for OVRDBF?
Hi Loyd,
Ovrdbf file(myfile) tofile(*libl/myfile)
Isn't that syntactical sugar? I.e. performs no useful function?
Most likely, you're right, it does nothing.
But, less likely, it's possible that it DOES do something. It would do
something if the HLL program hard-codes a library. The OVRDBF would
prevent the hard-coded library, and let you use the *LIBL.
For example if I did this in RPG:
FCUSTMAS IF E K DISK EXTFILE('QTEMP/CUSTMAS')
Without the override, this will only look for the CUSTMAS file in the
QTEMP library. With the override, it'll look in *LIBL.
Why would someone write code like this? I have no idea -- I'm just
pointing out that it's possible.
As an Amazon Associate we earn from qualifying purchases.