Have an RPGLE program that calls a external procedure, which does an OVRPRTF (through a RunCL function), and then prints a report.
The problem is, that the OVRPRTF doesn't seem to be doing it's job.
Does this have something to do with the procedure?
I originally had a CL that was called (from the RPG) which did the overrides, and then called the procedure and the report printed fine.
But, I was told to just put it into the procedure and forget the CL, and now it doesn't work.
Any suggestions?
Thanks
Software/Hardware used:
ASKED:
March 13, 2007 1:52 PM
UPDATED:
March 19, 2010 6:47 PM
I just come across some problem with OVRPRTF that does not work !
and I found the reason that is not that obvious…
CL that I was running was compiled V4R5M00 way back in 2008 and the PRTFile was compiled last month using V5R4M00
user were telling me it does not print as before and after looking at the CL that looked Okay I thought of recompiling the CL and gest what ! Problem is solved.
so next time you have a problem like “it use to work, but it does not anymore”
just think that not same release —-> no same result !
CL that I was running was compiled V4R5M00 way back in 2008 and the PRTFile was compiled last month using V5R4M00
That in itself should have no bearing on the problem. Something else was almost certainly missed. Now, no one has any idea what the actual problem was. I’d like to suggest a future series of actions.
IMO, a better procedure would have been to move the offending program to some safe library before submitting the compile. And any source information from the old object should have been tracked in order to grab the member info from source members. (Ideally, the source info would be gathered by a program so that human preconceptions wouldn’t obscure details.)
Then a recompile could be done with less chance of losing possible clues. The new compile would then “fix” the problem, and the cause could be determined later. Knowing the real cause allows searching for other programs that might have the same problem so they could be fixed before a production job had trouble.
Tom
Try setting up your OVRPRTF command like this:
OVRPRTF FILE(from_print_file) TOFILE(to_print_file) +
OVRSCOPE(*JOB)