re-direct QTP stats page to another printer - Solution
george.j.wen@us.abb.com
george.j.wen@us.abb.com
Thu, 10 Jan 2002 14:58:25 -0600
Many thanks to all who responded.
I tried a number of ways to make an OVRPRTF work in conjunction with the
"Set Report Printer" within Qtp but the statistics page would still print only
to
my default printer. By using the following command (Marilyn) :
OVRDBF FILE(STDOUT) TOFILE(QTPSTATname)
prior to executing the program.
I was able to direct both the contents of the source and the statistics to a
file
(couldn't get just the stats). One of the nice features of PH on the 400 is
that you
can now access this file as a subfile AKA (acc *QTPSTATname). So by access-
ing the file via quiz I can now use the Set Report Queue to accomplish the task.
Since the source statements have ">" in front of them a simple select if <> gets
rid of the source as well - I now execute this quick and dirty Quiz program and
I
have the Stats page to any printer.
Wouldn't be nice to have the necessary set statements available in QTP or some
other more strait forward way to do this? - hey we live in the real world.
Thanks again everyone.
George
Original Msg:
This question pertains to the AS/400 and I'm trying to redirect the
statistics page to a printer other than the users default. I have
tried the following over-rides:
OVRPRTF FILE(PHPRT) DEV(NB108$4SI)
OVRPRTF FILE(*PRTF) DEV(NB108$4SI)
OVRPRTF FILE(PHPRT) OUTQ(NB108$4SI)
OVRPRTF FILE(PHPRT) OUTQ(NB106$4SI) SECURE(*YES) OVRSCOPE(*JOB) - with
this one I do get the output re-directed but it won't release
Within the QTP program I execute a Set Report Printer so I can test this
interactively but ultimately I'll be executing the program from a CL
program that's called by a menu.
It seems QTP in fact uses the printfile PHPRT but I'm confused about what's
going on here.
Does anyone have any suggestions?
Thanks,
George