re-direct QTP stats page to another printer - Solution Addendum

george.j.wen@us.abb.com george.j.wen@us.abb.com
Thu, 10 Jan 2002 15:05:11 -0600


--0__=9HXpuSQW8xw907ljwfTEQS5k1TiSgea5ANZbUXxInQ1K8QKzdowtH0lc
Content-type: text/plain; charset=us-ascii
Content-Disposition: inline



Note: I had to use the secure and scope parms with the over-ride :

OVRDBF FILE(STDOUT) TOFILE(WENG/QTPSTAT) SECURE(*YES) OVRSCOPE(*JOB)


|------------->
|(Embedded    |
|image moved  |
|to file:     |
|pic21514.pcx)|
|             |
|------------->
  >------------------------------------------------------------------------|
  |george.j.wen@us.abb.com                                                 |
  |01/10/2002 02:58 PM                                                     |
  >------------------------------------------------------------------------|



To:   powerh-l@lists.swau.edu
cc:    (bcc: George J. Wen/NB/USFAC/ABB)
Subject:  RE: re-direct QTP stats page to another printer - Solution

Security Level:?         Internal





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



= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe" in message body to powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.




--0__=9HXpuSQW8xw907ljwfTEQS5k1TiSgea5ANZbUXxInQ1K8QKzdowtH0lc
Content-type: application/octet-stream; 
	name="pic21514.pcx"
Content-Disposition: attachment; filename="pic21514.pcx"
Content-transfer-encoding: base64

CgUBCAAAAABBADEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAABQgABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAA=

--0__=9HXpuSQW8xw907ljwfTEQS5k1TiSgea5ANZbUXxInQ1K8QKzdowtH0lc--