Dynamic File Name in Quiz

Guy Werry guy.werry at hbms.ca
Thu Mar 8 11:22:09 CST 2007


It's actually quite simple.

You need to set the PH_PRINTER environment variable.

In our case, we are using the Korn shell (ksh); the syntax may change depending on what flavour of Unix / which shell.

So, inside the Quiz program we say:

SET REP DEV PRINTER

and we execute like this:

export PH_PRINTER="lp -dxxx -oyyy"
quiz 

where xxx is your printer and yyy are the printer options, if any.  This way, the Unix spooler gets each 

One cool side affect of doing this is that if you are debugging and want to look at the report(s) on disc instead of printing them, you can do the export like this: export PH_PRINTER='cat ->> glw'
Then, when you run the quiz report it will put the output into a disc file named "glw", without any code changes!  Really handy!

Hope this helps:
Guy L. Werry
Senior Systems Analyst
Hudson Bay Mining & Smelting Co., Limited. 



-----Original Message-----
From: powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca at lists.sowder.com]On Behalf Of
Abd Ghani Abdullah
Sent: Thursday, March 08, 2007 11:12 AM
To: powerh-l at lists.sowder.com
Subject: Dynamic File Name in Quiz



Dear Gurus,

Is there a way to make the SET REP NAME XX dynamic in QUIZ on UNIX?
We have a customer who use multiple quiz program to produce a series of 
report. These reports are then printed at oen go as a single report to the 
local printer.

In MPE envioroment the FILE EQUATION work like a charm. If multiple users are 
using it, the link only exist for that particular session.

We have changed these to ln in UNIX. When more than a single user log-in, the 
result is a disaster!!

Thanks & regards.
-- 

= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe <password>" in message body to powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.
Add 'site:lists.sowder.com powerh-l' to your search terms to search the list archive at Google.

The information in this e-mail and any attachments is confidential and may be subject to legal professional privilege. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorised to, and must not, read, copy, distribute, use or retain this message or any part of it.



More information about the powerh-l mailing list