Logical name for report in Quiz.

Lamers Mike Mike.Lamers@phs.com
Thu, 27 Jun 2002 07:39:47 -0700


We do this on a regular basis.

In the Quiz, you have a set report device statement:

SET REPORT DEVICE DISC NAME MYREPORT

Then in your VMS .COM file:

$ USER_NAME =  F$EDIT(F$GETJPI("", "USERNAME"), "TRIM") 
$ Define/nolog MYREPORT   DEVICE:'USER_NAME'_your_report_name

We also check to see if the report already exists and delete it before
running Quiz

$       RPT0       = F$TRNLNM("MYREPORT")
$!
$ IF F$SEARCH("''RPT0'.TXT" ) .NES. "" 
$       THEN DELETE 'RPT0'.TXT;*  
$ ENDIF
$! Then run your Quiz report:
$ QUIZ AUTO=quiz filename

Quiz will always assign a file type of .TXT to your Quiz report.  If you
want a different file type, you can always rename the file after the Quiz
has run.

Mike Lamers
Regional IT (CO82-206)
PacifiCare of Colorado 
(719) 522 - 6758
FAX: (719) 522 -6307
mike.lamers@phs.com




This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.