Hello sages

a programmer has just approached me with a perplexing OVRDBF issue:

Somewhere in a start of a CL PGM he issued an OVRDBF with FILE(XFILE)
MBR(XMBR)
then some 100 lines down he issued a CPYF with TOFILE(XFILE) TOMBR(YMBR)
and the XMBR MBR was populated!
Turns out that OVRDBF's MBR takes precedence over CPYF's TOMBR.

Searching the web I found that OVRDBF's MBR even takes precedence over
RPG's File specs EXTMBR.
https://www.mcpressonline.com/programming/rpg/dont-mix-override-metaphors

Is that so?

If yes, then this old dog has learned a new very old trick.

What say ya ?

Gad

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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