We have discovered a DLTOVR is not working correctly.
All the commands are basic:
OVRDBF FILE(orgfile) TOFILE(newfile)
DLTOVR *ALL
Here is the basic setup
CallingCLP
call CLpgm1 parm1
call CLpgm2 parm1
call CLpgm3 parm1
call CLpgm1 parm2
call CLpgm2 parm2
call CLpgm3 parm2
Inside CLpgm1 we have ovrdbf to FILE1 based on the parm. there is no DLTOVR at the end of the CL.
(this may be the problem)
At the end of CLpgm1, it calls another program, CLPGM25.
CLPGM25 has ovrdbf to file the same FILE1. It has a DLTOVR *ALL at the end.
The second time CLPGM1 is called with parm2, the override from CLPGM25 is in effect, despite the fact CLPGM25 had DLTOVR *ALL at the end (no other parms on the DLTOVR command)
So to recap, we have a level 1 program calling a level 2 program, which calls a level 3 program. The level 3 program had DLTOVR *ALL, but the second time the level 2 program runs, the override from the level 3 program remains in effect.
All the commands are basic:
OVRDBF FILE(orgfile) TOFILE(newfile)
DLTOVR *ALL
Here is the basic setup
CallingCLP
call CLpgm1 parm1
call CLpgm2 parm1
call CLpgm3 parm1
call CLpgm1 parm2
call CLpgm2 parm2
call CLpgm3 parm2
Inside CLpgm1 we have ovrdbf to FILE1 based on the parm. there is no DLTOVR at the end of the CL.
(this may be the problem)
At the end of CLpgm1, it calls another program, CLPGM25.
CLPGM25 has ovrdbf to file the same FILE1. It has a DLTOVR *ALL at the end.
The second time CLPGM1 is called with parm2, the override from CLPGM25 is in effect, despite the fact CLPGM25 had DLTOVR *ALL at the end (no other parms on the DLTOVR command)
So to recap, we have a level 1 program calling a level 2 program, which calls a level 3 program. The level 3 program had DLTOVR *ALL, but the second time the level 2 program runs, the override from the level 3 program remains in effect.
Comment