Calling quiz from quick passing parameters...

Jim Nicoll jnicoll@portofhalifax.ca
Tue, 13 Mar 2001 12:41:58 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_003A_01C0ABBA.FE857600
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

A strategy we sometimes use is to write the choose parameter supplied by =
the user in a QUICK screen to a temporary file:

  LET RUN-COMMAND=3D"ECHO " + parameter + "  > TEMPFILE"=20
  RUN COMMAND RUN-COMMAND

Then we call QUIZ (or QTP as the case may be), using standard input =
redirection:

  RUN COMMAND 'QUIZ;"auto=3DQUIZRUN" < TEMPFILE'

The parameter must be written to the temp file as a character item. If =
the CHOOSE statement in the QUIZ run allows more than one parameter to =
be entered (ie. not 1 TIME NOTALL) you must echo a line for each =
parameter and a final blank line at the end of the temp file to =
terminate the choose prompt.
=20
Jim Nicoll
Halifax Port Authority
ph:  902-426-8713
fax: 902-426-8441
  ----- Original Message -----=20
  From: Gassett, Chris=20
  To: 'powerh-l@sphere.swau.edu'=20
  Sent: Monday, March 12, 2001 6:19 PM
  Subject: Calling quiz from quick passing parameters...


  I want to be able to run a Quiz report from within a Quick screen, but =
I want to be able to pass data from that the screen has already accessed =
to the report to choose specific data.  Is this possible and if so are =
there any samples out there?  Thanks in advance.

  PROCEDURE DESIGNER FRM
  BEGIN
    RUN COMMAND "quiz auto=3D$HOMEQUIZ/test.qzs nolist nostatistics"
  END


  Powerhouse Ver. 8.13 d3

------=_NextPart_000_003A_01C0ABBA.FE857600
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>A strategy we sometimes use is to write =
the choose=20
parameter supplied by the user in a QUICK screen to a temporary=20
file:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;LET =
RUN-COMMAND=3D"ECHO&nbsp;" +=20
parameter +&nbsp;"&nbsp;&nbsp;&gt; TEMPFILE" </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; RUN COMMAND =
RUN-COMMAND</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then we call QUIZ (or QTP as the case =
may be),=20
using standard input redirection:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; RUN COMMAND =
'QUIZ;"auto=3DQUIZRUN" &lt;=20
TEMPFILE'</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The parameter must be written to the =
temp file as a=20
character item. If the CHOOSE statement in the QUIZ run allows more than =
one=20
parameter to be entered (ie. not&nbsp;1 TIME NOTALL) you must&nbsp;echo =
a line=20
for each parameter and a final blank line at the end of the temp file to =

terminate&nbsp;the choose prompt.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Jim Nicoll<BR>Halifax Port Authority<BR>ph:&nbsp; =
902-426-8713<BR>fax:=20
902-426-8441</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DGassett@aavid.com =
href=3D"mailto:Gassett@aavid.com">Gassett, Chris</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dpowerh-l@sphere.swau.edu=20
  =
href=3D"mailto:'powerh-l@sphere.swau.edu'">'powerh-l@sphere.swau.edu'</A>=
 </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, March 12, 2001 =
6:19=20
PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Calling quiz from =
quick passing=20
  parameters...</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=3D571141722-12032001><FONT size=3D2>I want to be able =
to run a=20
  Quiz report from within a Quick screen, but I want to be able to pass =
data=20
  from that the&nbsp;screen has already accessed&nbsp;to the report to =
choose=20
  specific data.&nbsp; Is this possible and if so are there any samples =
out=20
  there?&nbsp; Thanks in advance.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D571141722-12032001></SPAN><SPAN=20
  class=3D571141722-12032001><FONT face=3Dr_ansi><FONT=20
  face=3D"Times New Roman"></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Times New Roman" size=3D2>PROCEDURE DESIGNER =
FRM</FONT></DIV>
  <DIV><FONT face=3D"Times New Roman" size=3D2>BEGIN</FONT></DIV>
  <DIV><FONT face=3D"Times New Roman"><FONT size=3D2><SPAN=20
  class=3D571141722-12032001>&nbsp; </SPAN>RUN COMMAND "quiz=20
  auto=3D$HOMEQUIZ/test.qzs nolist nostatistics"</FONT></FONT></DIV>
  <DIV><FONT face=3D"Times New Roman" size=3D2>END</FONT></DIV>
  <DIV><FONT face=3D"Times New Roman" size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3D"Times New Roman" size=3D2></FONT>&nbsp;</DIV>
  <DIV></FONT><FONT face=3D"Times New Roman" size=3D2><SPAN=20
  class=3D571141722-12032001>Powerhouse Ver. 8.13=20
d3</SPAN></FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003A_01C0ABBA.FE857600--

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