Passing Parms from Quick to Quiz It Works

Abraham Zwygart azwygart@anodizing.com
Thu, 22 Apr 1999 15:31:28 -0700


Thanks for your help.  This work great.
Abraham Zwygart

----- Original Message -----
From: Michael Lee <mcl_systems@bc.sympatico.ca>
To: Abraham Zwygart <azwygart@anodizing.com>
Cc: <powerh-l@lists.swau.edu>
Sent: Monday, April 19, 1999 6:01 PM
Subject: Re: Passing Parms from Quick to Quiz


> There are several ways to do what you want to do Abraham. I'm assuming
that you
> are passing data for prompts of some sort. The basic way is to build a
> temporary file (which must be declared in the dictionary). You can then do
LETs
> and PUT file RESET to this file to place the data in it. You can then
simply
> call QUIZ with the input redirected to the file. Here is some sample code:
>
> PROCEDURE DESIGNER QUIZ
> BEGIN
>     RUN COMMAND "BUILD INPUT;REC=-80,,F,ASCII;TEMP"
>     RUN COMMAND "FILE INPUT=INPUT"
>     LET INPUT-ITEM OF INPUT = MYKEY OF MYFILE
>     PUT INPUT RESET
>     LET INPUT-ITEM OF INPUT = ANOTHER-VALUE OF MYFILE
>     PUT INPUT RESET
>     RUN COMMAND "QUIZ AUTO=QUIZPROG < INPUT"
> END
>
> If the file is NOT in your dictionary you could do the following
instead...
>
> PROCEDURE DESIGNER QUIZ
> BEGIN
>     LET T-COMMAND = "echo " + MYKEY OF MYFILE + " > INPUT"
>     RUN COMMAND T-COMMAND
>     LET T-COMMAND = "echo " + ANOTHER-VALUE OF MYFILE + &
>                                          " >> INPUT "
>     RUN COMMAND "QUIZ AUTO=QUIZPROG < INPUT"
> END
>
> If you have numeric values in both cases you must ASCII the value prior to
> moving it to the INPUT file. If you have a key value put in a blank to get
out
> of the CHOOSE loop (unless you are using the PROMPT 1 TIME parameter).
>
> You can also do a SETSYSTEMVAL in QUICK and a GETSYSTEMVAL in QUIZ.
>
> Hope this helps.
>
> Michael Lee
> MCL Systems Inc.
>
>
>
> Abraham Zwygart wrote:
>
> > Hi.
> >
> > I will need run quiz from a quick screen, and pass several arguments to
> > quiz.  The system that I am working on is:
> > OS HP3000 5.5p6
> >  ph  v8.19c2
> >
> > I known this was not possible in version 7.29?
> > Any help will be greatly appreciated.   Thanks
> >
> > Abraham Z.                               Senior Programmer Analysts
> > Anodizing Inc.                            Email: azwygart@anodizing.com
> > 7933 N. E. 21st Avenue            Phone: (503) 972-1404 x 1232
> > Portland, OR 97211                   Fax:   (503) 972-1408
> >
> > The thoughts, comments, and opinions expressed herein are mine
> > and do not reflect those of my employer(s), or anyone else.
> >
> > = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= =
> > Subscribe: "subscribe powerh-l" in message body to
majordomo@lists.swau.edu
> > Unsubscribe: "unsubscribe powerh-l" in message to
majordomo@lists.swau.edu
> > powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
> > This list is closed, thus to post to the list, you must be a subscriber.

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