OVRPRTF not working in procedure that is called
85 pts.
0
Q:
OVRPRTF not working in procedure that is called
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
ASKED: Mar 13 2007  1:52 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
370 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Have you checked that the override is happening before the printer file is opened? If the external procedure is being called from the same program that is using the printer file then you will need to open it under user control.

You can also check the scope of the override to see whether it is being made at job or call level.

All the best

Jonathan
Last Answered: Mar 13 2007  8:41 PM GMT by astradyne   370 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0