695 pts.
 What could be the reson for OVRDBF and OPEN on file is not working in RPGLE program.
Hi All, Can anyone please help me with below issue. The is a program abend in our production system in RPGLE program and with in that following operations happening, but i found errors while running program as below. following are the breif Sequence of operations written in RPGLE: 1. File(FMABCF)is declared as USROPN in F Spec. 2. OVRDBF FILE(FMABCF) TOFILE(FMXXXF)using QCMDEXC,please note XXX in the file name will replace with one of the program parameter on fly. 3. OPNQRYF FILE(FMXXXF)with few joing conditions. 4. Open FMABCF 5. Read FMABCF While i am debugging the program in developement box to replacate the error, i also encountered with same issue and saw following error messgaes in Joblog after completion of above steps in program by using DSPJOB. 1. Diagnostic message - List of values not valid for parameter TOFILE, Error found on 0OVRDBF command 2. Error on opening file 3. Escape Message - I/O operation was applied to closed file FMABCF. Could anyone please help me what could be the reason of OVRDBF is not happened correctly and other subsequent errors.

Software/Hardware used:
ASKED: October 7, 2011  6:00 AM
UPDATED: March 31, 2012  12:30 AM

Answer Wiki:
Might sound obvious, but sounds like the parameter that's determining the TOFILE might be corrupted?
Last Wiki Answer Submitted:  October 8, 2011  5:52 am  by  SteveHood   15 pts.
All Answer Wiki Contributors:  SteveHood   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

You should post all message ID’s and the job log.

 3,175 pts.

 

Check out the value in FMXXXF at run time.
If I issue the command
OVRDBF FILE(MYFILE) TOFILE(FM TST) with a bad char or space in the tofile neme
I get the error: “List of values not valid for parameter TOFILE.”
And my override doesn’t work.
Phil

 44,190 pts.