Question for Alpha Users - Parameter passing QUICK Screens
Murray Scholz
murray.scholz@abri.une.edu.au
Wed, 18 Aug 1999 13:50:20 +1000
Terry,
This, this is what the quiz/qtp SET JOB command is used for.
We use it as follows:
The quick screen does a RUN COMMAND of "QTP AUTO=XXXX_JOB.QTS NOLIST"
which interactively prompts for any parameters for choose or define
statements.
As it is going, it builds up a .JOB file (in sys$scratch I believe),
with the
dcl commands together with your answers to the parm prompts. Then when
it gets
tp the exit statement (the last line in the XXXX_JOB.QTS) , it closes
the 'job'
file and submits it to the batch queue. There are most of the usual vms
submit
parameters available of the 'set job' command.
In VMS, you can see the .JOB file, and it is exactly what you want, all
the
DCL commands, the answers to the PARM PROMPTs etc. You can have as much
dcl as you like.
You can also use setsystemval within the qtp (to set symbols and/or
logicals), and then
use these symbols/logicals in the dcl.
This is an example of a XXXX_JOB.QTS file
set job name anim_list notify noprinter
$$ pid = f$getjpi("","PID")
$$ assign scratch_location:subfilename'pid'.lis subfilename
$$ qtp
execute progname
$$ assign scratch_location:reportname'pid'.lis animslist
$$ assign nbrs$quiz:anotherprogname.qzc quizuse
$$ quiz
$$ set noon
$$ rename/log scratch_location:reportname'pid'.lis
repts_location:finalname.lis
$$ print repts_location:finalname.lis
exit
The same sort of thing works with QUIZ.
Note. That you cannot say 'execute thequizprogram' , seeing as the
whole thing is being
run by QTP , as qtp will not know what to do with the quiz .qzc. That's
the reason my
example uses the assignment to quizuse, rather than saying 'execute
yyyy.qzc'
You can use qtp/quiz "Display" statements to make the interactive
prompting for parameters
a little more friedly for the users too.
Hope this helps.
Murray Scholz
Agricultural Business Research Institute
University of New England
Armidale NSW 2351 Australia
----------------------------------------------------------------------------------------------
Terry Pickering wrote:
>
> The following pertains to user on ALPHA machines only:
>
> I've come across many times when I needed to have a DCL job command file
> with parameters in the file that is used by QTP or QUIZ. I don't really
> want to have to code the entire command procedure in the quick screen
> before submitting it, but I haven't figured out a way to do it otherwise.
>
> For example, let's say you want to submit a command procedure that is like
> this:
>
> $QTP AUTO=GLS_EXE:GLST014.QTC
> 2000
> 02
> $QUIZ AUTO=GLS_EXE:GLSZ001.QZC
> $EXIT
>
> I've tried creating a command procedure like this and passed the
> parameters, but that doesn't work either. The substitution only works for
> DCL commands. QTP thinks you're giving "'p1" as the prompted value and it
> is not substituted correctly.
>
> $QTP AUTO=GLS_EXE:GLST014.QTC
> 'p1
> 'p2
> $QUIZ AUTO=GLS_EXE:GLSZ001.QZC
>
> In the real life example there could be 20-30 (or more) DCL commands. I'd
> much rather have a command procedure somewhere other than embedded within
> my QUICK code. It's also much easier to test the command procedure first by
> writing the DCL commands in the editor.
>
> The only way I've figured out how to do it now, is to create a temporary
> file, write out all the commands using QUICK, submit the temporary file as
> a job, then delete the file. Some of the parameters are for CHOOSE prompts
> or DEFINE prompts. In some cases you could set a logical and then use the
> GETSYSTEMVAL, but that presents problems when the programs are being run
> interactively.
>
> Any suggestions?
>
> Terry Pickering CompuGroup, Inc.
> pickering@myself.com Portland, Oregon USA
> www.teleport.com/~compugrp Cessna 172 & Lancair ES
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> 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.
--
Murray Scholz
Associate Director
Agricultural Business Research Institute
University of New England
Armidale NSW 2351 Australia
Phone (02) 6773 3127 (Int'l) 61 2 6773 3127
Fax (02) 6772 5376 (Int'l) 61 2 6772 5376
Email murray.scholz@abri.une.edu.au
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.