skorek
Well Known Member
Hi JDE-guys
I have a little problem with these two CL commands.
Situation is following:
In CLP-A I have code:
OVRDBF FILE(F4211LA) OVRSCOPE(*CALLLVL) SHARE(*YES) OPNSCOPE(*ACTGRPDFN)
/*
CALL PGM(PH98315) PARM(&PSPID &PSVERS &PSFIL1 +
&PSMSGQ)
PH98315 - it is my version of P98315, it creates query on
file from PSFIL1, in this case it is F4211LA (logical) (not for base DW file)
Then I call RPG-A with declaration:
FF4211LA UF E K DISK
and in F4211LA I have acces only to record with selection from query. No
problem.
Then RPG-A call CLP-B with code:
OVRDBF FILE(F4211I) TOFILE(F4211LA)
and then CLP-B call RPG-B where F4211I is declared:
FF4211I UF E K DISK
But when I try read any record from file F4211I, program can't find any
records.
Why?
Have you any idea?
What I wrote wrong?
Regards
Tomasz Skorza
I have a little problem with these two CL commands.
Situation is following:
In CLP-A I have code:
OVRDBF FILE(F4211LA) OVRSCOPE(*CALLLVL) SHARE(*YES) OPNSCOPE(*ACTGRPDFN)
/*
CALL PGM(PH98315) PARM(&PSPID &PSVERS &PSFIL1 +
&PSMSGQ)
PH98315 - it is my version of P98315, it creates query on
file from PSFIL1, in this case it is F4211LA (logical) (not for base DW file)
Then I call RPG-A with declaration:
FF4211LA UF E K DISK
and in F4211LA I have acces only to record with selection from query. No
problem.
Then RPG-A call CLP-B with code:
OVRDBF FILE(F4211I) TOFILE(F4211LA)
and then CLP-B call RPG-B where F4211I is declared:
FF4211I UF E K DISK
But when I try read any record from file F4211I, program can't find any
records.
Why?
Have you any idea?
What I wrote wrong?
Regards
Tomasz Skorza