>     Hi,
>     I have a question...
>
>     Can you do the following in a CLP program??
>
>         OVRDBF  FILE(CONGRESS) TOFILE(Y2PAYROLL/CONGRESS)
>
>     where file CONGRESS resides in the current library but you want to
>     point to the version of the file in library Y2PAYROLL.
>
>     Library Y2PAYROLL is in the library list but is not the current
>     library.
>
>     I don't wish to make library Y2PAYROLL my current library.
>
>     I know that I could always change the library list to make it work the
>     way I want but I was curious to know if the same thing could be
>     accomplished by using the OVRDBF command.  I checked the manual in the
>     on-line website quickly for OVRDBF and it says that you can put in a
>     specific library but we didn't get the results we expected.
>
>     Thanks in advance for your input.
>
>     Chris Gonzalez



Your use of OVRDBF should be fine.

Things to check:  There's a parameter you can change for a program (CHGPGM)
called "Secure from Overrides" that prevents/allows overrides set at higher
invocation levels (ie programs that called the program in question) that
may be affecting your program.

However, the most 'recent' override (ie the one in your program) -should-
be the one that takes precedence.

Try placing a DSPOVR *ALL *PRINT  (Is there a *PRINT option?) statement in
your program and checking to see if your overrides point where you think
they do.

You may want to include DLTOVR statements to un-override files after you're
done with the override.

--Paul E Musselman
PaulMmn@ix.netcom.com


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...

Replies:

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

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