|
Jennifer Martin wrote:
Can anyone tell me why I'm getting the following implicit open error and why it says the file doesn't exist on the following: Error messages: File OS525OTH in library *LIBL not found or inline data file missing. Error message CPF4101 appeared during OPEN for file OS525OTH. Function check. RNX1216 unmonitored by OS525ECUST at statement 0001000001, instruction X'0000'.
I don't think anyone has mentioned the issue of override-scope yet. If your CL is a CLP and your RPG program runs in an activation group, then the RPG program may not seeing your overrides. See the OVRSCOPE parameter on the OVRxxxx commands. For CLP, OPM, and ILE DFTACTGRP(*YES) programs, overrides default to call-level. For ILE programs in an actgrp, overrides default to activation-group scope. And both types of programs can use job-scoped overrides. If you want to issue overrides from CLP and have them recognized by an ILE program, you have to use job-scoped overrides (specify OVRSCOPE(*JOB)). But then you have to make sure you explicitly remove the override, since job-scoped overrides hang around after your CL program returns. If you don't want to use job-scoped overrides, then you have to have the override command issued from the same activation group as the program using the override. Try compiling your CLP as a CLLE (CRTBNDCL) with the same DFTACTGRP and ACTGRP that you are using for your RPG program. Also, you could try stopping the RPG program in debug just before it tries to open the files. Set a breakpoint on the first F spec. When you stop at the breakpoint, do F21 to get a command line, and do a DSPJOB or DSPOVR to see what overrides are active; also do a WRKOBJ for the file.
As an Amazon Associate we earn from qualifying purchases.
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.