Because you've done an override from APDTLWK2 to &FILE the program
has to reference APDTLWK2 instead of &FILE for the override to take
effect. Because &FILE has a different key that APDTLWK2 if AP340 is
compiled over APDTLWK2 then I'm not sure that override will work.
What's the code in AP340 look like that references APDTLWK2
Robert Ostrowski on Friday, May 27, 2011 9:01 AM wrote:
The OVRDBF command below doesn't seem to be working. APDTLWK2 is
a logical file keyed on Vendor Name and Invoice Number. When AP340
(simple print program) is called, the program uses the sort order
in&FILE (Vendor Number, Invoice Number).
OVRDBF FILE(APDTLWK2) TOFILE(*CURLIB/&FILE) +
CALL PGM(*CURLIB/AP340) PARM(&FILE)