Christina Gonzalez wrote:
> 
>      Can you do the following in a CLP program??
> 
>          OVRDBF  FILE(CONGRESS) TOFILE(Y2PAYROLL/CONGRESS)
> 
>      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 

Chris,

You can certainly do that. The library need not be in the library list
at all. If you are having trouble with this command, you are either
running your program outside the scope of the override (OVRSCOPE
parameter), or another override is modifying your override before the
file is opened (SECURE parameter). In some cases, you also need to share
the access path so that two HLL program files share a common cursor
(OPNQRYF, etc.). You can do that with the SHARE parameter. 

You can tell what's happening in your job by adding a breakpoint
immediately before your program gets called and looking at the overrides
with DSPJOB or option 5 from WRKACTJOB or WRKUSRJOB. Once the file is
open, the override has no effect.

Regards
Pete

-- 
Pete Hall
peteh@earth.inwave.com
http://www.inwave.com/~peteh/
+---
| 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].